3 ms·
The common case should be short and implicit, and the uncommon case should be explicit. Here, the common case is wanting to create a new variable inside a funct
by jacobolus 16y ago
The common case should be short and implicit, and the uncommon case should be explicit. Here, the common case is wanting to create a new variable inside a function, rather than stomp on a global. Instead, JavaScript forces a programmer to explicitly state something that he wants 95%+ of the time, with a nasty failure case when he forgets.