... Readability is paramount. So the inherent off-by-one problem in the trick makes it hazardous. Certainly it does not justify keeping new Array in the safe...
Very interesting test :-) thanx jsperf ;-) but there was some errors... To be comparable, in those scripts str = a.join('char'); and str = a.join('*'); should...
Actually, it seems you made some errors in a couple of the tests that could invalidate the results. In ‘array literal joining char’ and ‘array literal...
... a string of n repeated character: http://jsperf.com/string-of-n-character Seems like new Array and [].length are the slowest ones at least in latest ...
... http://tech.groups.yahoo.com/group/jslint_com/message/614 Provides an elegant & effective solution without the use of new Array(n+1) and it operates...
The only uses I can see out of even allowing the "new Array" syntax at ALL are: 1) allocating memory for an array before you put items into it (not really...
My guess would be ”no”, but I’m no authority on the matter. I will add on behalf of a friend who has likewise been unable to access the group for more...
1644
Rob Richardson
erobrich@...
Nov 29, 2010 5:07 pm
Is this information available in another form or is there a trick to getting to it without a Yahoo account? My address subscribed to this list isn't a Yahoo...
Could this be resolved by providing a more explicit warning message on new Array() ? Kind of: "new Array() only acceptable to fix the size of a new empty...
JSLint allows new Array(3), but warns on new Array(3, 4) and new Array("3"). Someone wrote to me that they were confused by that. He was confused because he...
... I don't know if there's totally general rhino support, but my wrapper, jslint4java <http://code.google.com/p/jslint4java/>, covers a few use cases (cli and...
... Can you tell us the location(s) of improved versions of Rhino support? My googling hasn't turned up any yet. -- R. Mark Volkmann Object Computing, Inc. ...
I want to create a small database collecting all of the ways people have found to run JSLint. You have developed various ways of running it from command lines,...
I don't think that's true... I have code with dots on the next line and I don't think jslint complains about it. ... [Non-text portions of this message have...
Rob already answered to put the periods on the next line, but I wanted to point out a potential problem in your regular expressions. The following block could...
Rob But due to 'semicolon insertion', you will get an error on line 2. ... -- Tzvika Merchav Tel: +972-57-5659548 www.listen.co.il [Non-text portions of this...
Typically for me, while it does introduce extra parentheses and increases the number of lines in my raw code it does lend itself to better readability, I would...
In "JavaScript: The Good Parts", page 42, a cascade is formatted very nicely. In my example, I have: var htmlToExamine = returnvalue. replace(/^Success/, "")....
I decided to test your assertion, simplified the test and the result was not as expected given the assertion. The code below did not throw the error, yet uses...
JSLint (with the strict whitespace option) does not support the way you write an array. Specifically it does support a line break after a comma, but not...
*Edward*, You are right that votes don't make something right. It is also true that when we are talking in the area of style, the opinion of a great quantity ...
given the following snippet where » are tabs (4 space) and ---------- are begin and end markers. (the blank line after the start marker is intentional) ... ...
... I too agree that it should not be encouraged. I'm also a subscriber to the one exit point methodology/style as well. Multiple exit points tends to lead to...