Joined February 2013
·

James Li

Calgary, Canada Area
·

Posted to Why never use new Array in Javascript over 1 year ago

I don't thing the syntax "[10,11,12]" is a good replacement for "new Array(10,11,12)". The former embeds the API into the language syntax, the latter spells out the API clearly. This is also the reason I don't like perl compared to JavaScript. For example, if I have a better implementation for Array class, I can simply replace the name Array with MyArray.

Achievements
1 Karma
0 Total ProTip Views