10Re: [jslint] else
- Mar 20 10:22 AM--- Douglas Crockford wrote:
> insertion mechanism. More rigor is demanded.
you. You've made that point many times.
Do any browsers actually insert a semicolon after an unbrace carriage
return? I don't think I'm being unsafe with breaking the unbrace and
else statements with a carriage return. Doing so has the advantage
that the "else" is lined up with the "if" statement, makes the code
more readable, and the blocks more defined.
If unbrace-return-else is actually dangerous, about which I'd like you
to convince me, perhaps we can change jslint to catch it. If it's not
dangerous, there's no need to change anything.
- << Previous post in topic