3 ms·
Sparse in that function can actually mean function, closure, class or class method. Javascript also suffers from a cowboy layout problem where, for example, th
by mattmanser 15y ago
Sparse in that function can actually mean function, closure, class or class method.
Javascript also suffers from a cowboy layout problem where, for example, the initializer of a class may be anywhere. Most programming languages have established a convention to where it is (the top of the class declaration (e.g. Ruby, Python) or underneath class variables/properties (e.g. Java, C#)).
In Lisp it's even worse as it's not even obvious immediately what is a function or an argument as it's just on the position of the words.
I do keep meaning to give coffeescript a whirl, but feels it solves the symptoms not the underlying cause, so it's not that high on my 'try it' list.