Re:Composability: From Callbacks to Categories in ES6
by homami on Sunday July 10, 2016 @06:03AM
(#12065119)
That's very true. But on the other hand dynamic typing is what enables us to play with JavaScript and re-create many concepts from FP in plain JS. This is not easy in many strongly typed languages which their type system falls short of Haskell's (that supports ADTs, kinds, recursive types, etc.).
[ Parent
| on HN ]
Re:Composability: From Callbacks to Categories in ES6
by scribu on Sunday July 10, 2016 @10:50AM
(#12065751)
Yes, dynamic typing allows experimentation. But just because you can make JS look like Haskell doesn't mean it's the most effective way to get stuff done. You'd be better off writing Haskell and transpiling it, IMO.
Note that I'm talking about writing an entire application in this style, not just sprinkling categories here and there.