News for hackers. Stuff that matters.
Re:Making Coffeescript’s Whitespace More Significant by alexyoung on Wednesday November 30, 2011 @03:13PM (#3296688)
"writing functions to return a certain thing just to cater to how you like to write programs is hacking around a missing language feature"

To me chaining demonstrates just how flexible JavaScript is, rather than pointing out a fundamental missing language feature. In fact, by avoiding adding language features like this, I feel like the language is simpler and allows me to be more creative within its constraints.

Re:Making Coffeescript’s Whitespace More Significant by raganwald on Wednesday November 30, 2011 @03:17PM (#3296708)

    Java(S|s)cript != Coffee(S|s)cript
:-)

Lisp does not consider indentation significant, Python does. Smalltalk has cascading messages, Ruby doesn’t. I think these are simply design choices, and the goal is to find a set of choices that work together harmoniously.

Note that my proposed syntax still allows you all the chaining you want.