4 ms·
I'd prefer a Coffeescript that restored semicolons and braces and didn't depend on indentation to denote block structure. Fixing some of Javascript's most serio
by cageface 15y ago
I'd prefer a Coffeescript that restored semicolons and braces and didn't depend on indentation to denote block structure. Fixing some of Javascript's most serious warts is a great idea but, IMO, significant whitespace is a bad idea here just as it is in Python and Haskell. It just makes routine code manipulations like copy & paste and block refactoring a lot more tedious.
- jashkenas 15y agoThere are many other compile-to-JS languages that might be more to your liking. Perhaps try Objective-J? It's a strict superset of JavaScript. http://altjs.org/ http://altjs.org/
- cageface 15y agoI already curse Objective-C for its verbosity, so that's not the right direction for me. Coffeescript is in the right ballpark, I'd just rather have a more explicitly structured syntax, perhaps closer to Ruby.
- glassx 15y agoIMO, significant whitespace shines when used along with a proper editor. Also, even without an editor, the cleanliness pays off. And you would indent properly anyway...