4 ms·
“Lack of delimiters“ is given as the most common complaint about CoffeeScript. I’ve never written any CoffeeScript - Is this referring to the language’s Python
by pansa2 6y ago
“Lack of delimiters“ is given as the most common complaint about CoffeeScript.
I’ve never written any CoffeeScript - Is this referring to the language’s Python-like significant indentation, or something else?
- dgoldstein0 6y agosomething else. More that `()`, `[]`, `{}`, and `,` in a lot of places in the language syntax were optional. And we embraced that... way too much. E.g. foo: 1 bar: 2 is the same as { foo: 1, bar: 2, } for basically no good reason. When you start combining a lot of these, whitespace takes extra significance, and in extreme cases can easily change what you think the meaning of your code is, and what it actually is.