
Haskell and Clojure in Production with Eric Normand
Software Unscripted
00:00
The Difference Between Haskell, Elmo and the Closure Approach
In Haskell, the most popular way is to say, I want to derive my JSON decirilization and just say, it's going to be exactly the shape that I expected to be. And if it's not, give me an error. The Elmo approach of writing a decoder is more verbose than that. But it's also significantly more flexible where you can say, okay, here, I actually will accept either a string or a number or this or that. And then from there, you have everything that you need. Then the closure approach is the most flexible because it's not trying to do any upfront validation. It's just like, I'm going to translate these
Transcript
Play full episode