Hacker News new | ask | show | jobs
by cageface 5461 days 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.
2 comments

There 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/

I 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.
IMO, 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...