Re: Double negative
- I would support a change, but I think it would be desirable to continue to support the current /*jslint*/ directive for a while, with the current polarity convention.
A new /*options*/ directive in JSLint could observe the new switched polarity convention.
Editing the old form in scripts into the new would be fairly simple - mainly a matter of deleting items that are in the "good parts". A program to do that would be trivial.
It does, of course, involve changes in the web interface, and, in my case, in my Widget Tester Widget, but I don't see that as a problem given reasonable notice of the new interface wording and the Edition in which JSLint itself would change.
--- In firstname.lastname@example.org, "Douglas Crockford" <douglas@...> wrote:
> I want to change the polarity of the left most options: white, onevar, undef, nomen, regexp, plusplus, bitwise, newcap, strict. I think it is confusing to have Disallow options. I think Allow/Tolerate options make more sense.
> But I don't know how to make this change without creating a tremor in the force. The quickest way would be to suddenly reverse polarity. For users on the browser version, the [Clear Options] and [Good Parts] buttons become a single button, so that doesn't seem a big problem.
> The troublesome case is the people who have /*jslint*/ directives using those options. Those directives would have to be edited, which is really unfortunate.
> So I want to make this change, but I'm not sure it is worth the cost. Comments?