3 ms·
It's haskellfying it. Some of those are very needed constructions (like algebraic data types with pattern matching), but it's adding an entire sub-language int
by marcosdumay 8y ago
It's haskellfying it.
Some of those are very needed constructions (like algebraic data types with pattern matching), but it's adding an entire sub-language into a language that is built on the goal of being simple. I'm not sold into it either.
- weberc2 8y agoI'm a big fan of ADTs and pattern matching, but I hardly see the point in a dynamic language. I also like Haskell because of its type safety and _in spite of_ its syntax, so this sort of feels like the worst of all worlds to me.
- cbdumas 8y agoI could be missing something but saying this language has ADTs is stretching the definition of ADT a bit much for me. ADTs are defined by combining simpler types (usually with sum and product types) but that does not seem to be possible in Coconut.
- marcosdumay 8y agoYes, it's stretching, but there is a section for it. The sum types are create by multiple data declarations joined by directives. It's ugly, messy, error-prone and as your sibling comment says, misses the point of enabling static verification.
- haskellandchill 8y agoVery disappointing, like why bother doing ADTs if you aren't going to do them right and have exhaustive pattern matching.
- jecxjo 8y agoThis is the reason why all of these "mashup" languages are so pointless. Everyone feels like X language is so great but if only we could add a feature from Y language to it. They then attempt to trivialize what is needed for that feature not realizing that the benefits of Y are due, in part, to the non-trivial amount of functionality. They almost always turn into a façade of the feature they truly want to support and they never gain traction because their usefulness just really isn't there.
- zbentley 8y agoI agree. Likely-unpopular corollary: the same is true of adding threads to JavaScript (server or client).