3 ms·
I'm not complaining that JS isn't Haskell. Underneath the C/Java syntax JS is a small, simle, Lispy, dynamic language — if you like that kind of thing. JS' synt
by erokar 9y ago
I'm not complaining that JS isn't Haskell. Underneath the C/Java syntax JS is a small, simle, Lispy, dynamic language — if you like that kind of thing. JS' syntax hide that. CoffeeScript helped reveal it.
> In other words, you can have good looking FP support with braces and semicolons.
Of course. But why would you?
- jasim 9y agoI love braces and semicolons and my biggest gripe with CoffeeScript and HAML and Python was that they used space to delimit blocks. The good thing about braces is that moving code around is easy and it makes auto-formatting possible. refmt, prettier etc. are all amazing to have. But in terms of syntactic preferences, it is quite subjective and I wouldn't claim there is one true answer.