... I do not recommend use of continue. JSLint currently barely tolerates it....
1595
Michael Mikowski
z_mikowski
Nov 17, 2010 6:25 pm
In my team code standards, continue and break are only to be used with a label. This is similar to other Best Practice conventions in other languages because ...
1596
Douglas Crockford
douglascrock...
Nov 17, 2010 6:32 pm
... Please try it now....
1597
Douglas Crockford
douglascrock...
Nov 17, 2010 6:35 pm
... The purpose of JSLint is not to make you feel good about inadequate coding standards. Since you are refusing to consider my advice to avoid continue, then...
1598
Rob Richardson
erobrich@...
Nov 17, 2010 6:46 pm
goto is evil. ... From: jslint_com@yahoogroups.com [mailto:jslint_com@yahoogroups.com] On Behalf Of Michael Mikowski Sent: Wednesday, November 17, 2010 11:26...
1599
Erik Eckhardt
vorpalmage
Nov 17, 2010 6:49 pm
Could you elaborate on that? I'd love to get on the bandwagon but don't know why you would say that. On Wed, Nov 17, 2010 at 10:02 AM, Douglas Crockford ... ...
1600
Chris
altearius
Nov 17, 2010 7:30 pm
... This works fine, thank you!...
1601
Chris
altearius
Nov 17, 2010 7:57 pm
Hello, When checking CSS, JSLint validates color names. There is a long list of supported color names on lines 387 - 525 of fulljslint.js: ...
1602
Douglas Crockford
douglascrock...
Nov 17, 2010 8:44 pm
... Please try it now....
1603
Chris
altearius
Nov 18, 2010 1:42 am
... This works fine, thank you!...
1604
Chris
altearius
Nov 18, 2010 1:52 am
Hello, Line 1481 of fulljslint.js warns us of potentially dangerous comments. It does this using a regular expression in the variable "ax", defined on line...
1605
Michael Mikowski
z_mikowski
Nov 18, 2010 2:35 am
Actually, Douglas, My standards do follow your recommendations about filtering; unfortunately, the example I contrived does not. The intent there was to show...
1606
Chris
altearius
Nov 18, 2010 5:17 pm
Hello, Lines 3069 through 3072 of fulljslint.js specify the allowed values for the CSS "border-style" attribute:...
1607
abyssoft@...
abyssoft...
Nov 18, 2010 7:23 pm
Interesting, but I am not able to replicate the error. I've tried various formatting of a comment. can you provide a snippet I'd love to see this....
1608
Douglas Crockford
douglascrock...
Nov 18, 2010 7:47 pm
... Please try it now....
1609
Chris
altearius
Nov 18, 2010 7:49 pm
... Hello, Here is a snippet that will produce the "Dangerous Comment" message with all JSLint options in their default state (off): <html> <head> <script> //...
1610
Chris
altearius
Nov 18, 2010 8:02 pm
... This works fine, thank you!...
1611
Douglas Crockford
douglascrock...
Nov 18, 2010 8:38 pm
... Please try it now....
1612
Chris
altearius
Nov 18, 2010 8:46 pm
... This works fine, thank you!...
1613
Marcel Duran
marcelduran
Nov 18, 2010 8:56 pm
Here's an old function from a greasemonkey script I wrote a few years ago that uses label and break instead of a bunch of control variables to properly break...
1614
Erik Eckhardt
vorpalmage
Nov 18, 2010 9:53 pm
Douglas, The only thing I could find about continue related to jslint was a one-liner: Avoid use of the continue statement. It tends to obscure the control...
1615
Cheney, Edward A SSG ...
sandyhead25
Nov 18, 2010 10:23 pm
Erik, The problem with the continue statement is that its use obscures logic. It is clear that a loop will break or it is endless. An endless loop is...
1616
Erik Eckhardt
vorpalmage
Nov 18, 2010 11:18 pm
Austin, The example was: for (name in obj) { if (!obj.hasOwnProperty(name)) {continue;} ... } In my opinion this is little different than this greatly-upvoted...
1617
Carlos Vadillo
c_vadillo
Nov 19, 2010 6:36 am
... I think you can always write an alternative code that conveys better your intentions: var changeCSS = function (selector, property, value) { var i, rules, ...
1618
Marcel Duran
marcelduran
Nov 19, 2010 6:54 am
Hi Carlos, I really like your solution, it's much clearer. As I mentioned this is an old code I wrote a few years ago which uses label/brake, I certainly won't...
1619
Cheney, Edward A SSG ...
sandyhead25
Nov 19, 2010 9:00 pm
Erik, ... I deleted my Stack Overflow account in late spring. Popularity is not a correlation to accuracy. ... There is nothing wrong with multiple exit...
1620
Paul
merlin_80000
Nov 19, 2010 9:29 pm
I agree with the OP. I use the continue statement in exactly the same manner and have trouble understanding the objection to responsible use of the continue...
1621
Chris
altearius
Nov 20, 2010 3:55 am
Hello, This seems like a reasonable suggestion. I can see the appeal of the alternative style proposed here. I see nothing unclear or obscure about the...
1622
Marcel Duran
marcelduran
Nov 20, 2010 4:42 am
... +1 -- Marcel Duran [Non-text portions of this message have been removed]...
1623
abyssoft@...
abyssoft...
Nov 21, 2010 11:13 pm
... 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...