4 ms·
That's how literally every VDOM-based framework looks, including React. Elm isn't special in this regard. It is special in many other regards, however, and I ap
by grenadier21 8y ago
That's how literally every VDOM-based framework looks, including React. Elm isn't special in this regard. It is special in many other regards, however, and I appreciate it for that. It's also interesting as one of the few languages that have parametric polymorphism but no ad-hoc polymorphism, which leads to some interesting designs. I don't like how only the BDFL is allowed to do certain things, like create new operators in external libraries, but overall, it's a very pleasant experience.
- cttet 8y ago"one of the few languages that have parametric polymorphism but no ad-hoc polymorphism" I wonder what others are? Would like to try them.
- Athas 8y agoOCaml and Standard ML are two others, and I'd say OCaml is established enough that Elm is not really breaching new ground here. The main difference is that OCaml has other features you tend to use instead, particularly the module system.
- ikfmpwdsoz 8y agoOCaml is a very fun language in my experience. Apparently they were going to add ad-hoc polymorphism in the form of modular implicits, but I have no idea what happened to that.
- logicchains 8y agoIt's due around the time OCaml multicore support and Half Life 3 are released.
- rs86 8y agoCan't the module system be used for ad hoc polymorphism?
- lalaithion 8y ago"I don't like how only the BDFL is allowed to do certain things, like create new operators in external libraries" Isn't this true for like, 95% of languages? Yes, Elm breaks from it's Haskell heritage in this regard, but this is a very common lack of feature.
- grenadier21 8y agoFair enough, but my main problem with it was that it existed, and then they removed it, which was very sad.