Rust and Haskell don’t shy away from powerful features. As a result, both languages have steep learning curves when compared with other languages. Trying to learn Rust or Haskell can be frustrating, especially in the first couple of months.
But if you already know Rust, you have a head start with Haskell; and vice versa.
In this article, we want to show how knowledge of one of these languages can help you get up to speed with another.
HaskellRank is a YouTube series where we solve a couple of simple programming problems but in Haskell. It’s an on-going experiment where I’m trying to teach Haskell through constalty showing different examples instead of giving a well structured material.
A minimal subset of JSON for machine-to-machine communication
I didn’t know this problem existed:
JSON contains redundant syntax such as allowing both 10e2 and 10E2. This helps when writing it by hand but isn’t good for machine-to-machine communication.
Now that I know, I’m glad a solution exists, son.