3 ms·
"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 demon
by alexyoung 15y ago
"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.
- raganwald 15y agoJava(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.