4 ms·
I wonder if Elm had typeclasses if it would help with the verbose code a little. Not having them just means more code but also maybe more someone needs to under
by jtwebman 5y ago
I wonder if Elm had typeclasses if it would help with the verbose code a little. Not having them just means more code but also maybe more someone needs to understand to use the language.
- yakshaving_jgt 5y agoAs a Haskell programmer, I am happier that developers who would otherwise be writing JavaScript can more quickly get productive with Elm than I am upset that I don't have the utility of type classes at my fingertips. I think it was a wise compromise.
- 1-more 5y agoYou'd lose a fair bit of the verbose and helpful error messages for one thing. I think elm seeks to always have the error messages tell you what to do next, and that might be too tough with type classes. Also typeclasses make me act a little too clever. I have a better time when I'm a little more verbose.