Thanks for the reply Austin. I'm not 100% sure if you're saying passing functions as arguments is bad per-se (they're first class in JavaScript), or if it's...
Just to add another option, what do you think of creating proxy functions to "fix" an API that uses a lot of arguments in callbacks? Using my previous code as...
Please do not make this an ad hominem. Whether or not I am absolutely ignorant of how to write functional code in JavaScript your point adds nothing to the...
Ben, It is correct that functions are first class objects in JavaScript. That statement goes to the syntax and definition of functions in the language opposed...
Thanks again Austin. I see your point. This argument aside (ba-dum-tish!), my real question is whether JSLint should allow early unused arguments. So...
... Please clarify why: foo(arg, function() { callThis(with, these, arguments); }); Is considered extremely sloppy. AD [Non-text portions of this message have...
... Yes it should, because it is often an error. But if you are intentionally writing code that looks like an error, and don't want to be reminded of that...
I rarely use it, but I like it a lot when I do. So I would miss it. Thank you for this wonderful tool. Pierre Martineau ... From: "douglascrockford"...
Thanks for the reply. Of course you're right (an annoying habit). Do you have a suggestion on creating callback / handler functions like this that don't look...
I was surprised to find that JSLint doesn't complain about the following code: function doCheck(arr1, arr2, checker) { var i, l; for (i = 0, l = arr1.length; i...
What might be the general rule be, just literally "Nested for loops shouldn't share control variables"? Or is there a larger principle at play here?...
2875
Rob Richardson
erobrich@...
May 9, 2012 6:16 pm
I think an even larger issue should be checking for identically named variables declared in different scope. This too should be illegal: function a() { ...
Google Chrome Extension http://code.google.com/p/script-cover/ <http://code.google.com/p/script-cover/> Some things to note: If the program needs data to...
I agree: I think such a rule would be a useful improvement to JSLint. I have seen this sort of situation causing numerous bugs in my own code. Of course, we...
A new edition of the JSLint web page is available for testing at http://jslint.com/test/jslint.html It includes many UI improvements suggested by Jeff Coniff. ...
... I note that you have removed the "Assume a Yahoo! Widget" option from the UI. I am not unduly bothered by that, but hope that you will leave that option...
I like the new tri-state options. These are much easier to understand than the old ones. The "Clear Options" button sets "Indentation" and "Maximum number of...
... Yahoo itself is not longer supporting widgets, so I don't think I need to support them too. You can use option.predef or /*globals*/ to specify the widget...
Disclaimer: I am no fan of Microsoft. but... The page looks bad on IE9 because the #JSLINT_ ID selector is not being interpreted right (something to do with...
Would it be possible to warn on use of the "this" keyword? With exception to extending prototypes or referencing from the DOM I have never seen an efficient...
Douglas, This little explanation was great. It would be wonderful if the error messages would link to pages with little explanations like this. - Robert Ferney...
... I agree and support the feature request. Sometimes I feel so stupid reading fancy modern JS code. It's nice to know I'm not alone in benefiting from "the...