by yjgyhj · 9y ago · 0 comments
While I miss code-is-data very much, there is no turning back from the type system and how there are no unpure functions. It is just so mind-blowingly easy to catch almost every bug I would usually write.
I'm afraid this is the point where I should try Haskell, and be unsatisfied for the rest of my professional life.
When I write code in Haskell, it feels right, just like when I discovered Lisp. Only better. And oh, the purity! Not only in the mathematical sense, even the code is completely deprived of clutter.
As an aside, I have a theory that Elm is a gateway drug to Haskell. Next stop, purescript?
FWIW, Elixir has this (and is possibly the only non-homoiconic language to implement "true" macros)
Opt-in typing, though.
Regarding Elm, I love that runtime errors are considered compiler bugs.
Scala macros cannot change its syntax, Elixir macros can I believe (to some extent).