7 ms·
I'm not big on the glaringly inefficient transpilers that Haskell has come up with. You can replicate a lot of Haskell's functionality in JavaScript very elegan
by clux 14y ago
I'm not big on the glaringly inefficient transpilers that Haskell has come up with. You can replicate a lot of Haskell's functionality in JavaScript very elegantly.
See for instance:
* https://github.com/clux/autonomy https://github.com/clux/autonomy - prelude like thing
* https://github.com/clux/subset https://github.com/clux/subset - basically Data.List
* https://github.com/clux/operators https://github.com/clux/operators - currying helpers
* https://github.com/clux/interlude https://github.com/clux/interlude - a collection of the above 3
It has made my JavaScript development very enjoyable. JavaScript really doesn't suck have to suck. You can write very elegant code in it. It's just not as elegant as Haskell.
- lucian303 14y agoAbsolutely. I hate JS as much as the next person, but I hated the for lack of a better word, fuckedupedness, of dozens of languages and yet I still programmed in them. coughPerlcough Elegance is never the primary concern of code. Readability is. And they are not the same thing. Even Perl can be made readable.
- lucian1900 14y agoIts semantics are still silly and extremely error-prone. Also, that's not the point. There's already Roy and Elm for simpler compilation and decent semantics with interesting features. Fay lets you share code between server and client.