Re: Reserved word property access and line breaks

2010-08-29 Thread Jeff Walden
On 08/29/2010 03:28 PM, Douglas Crockford wrote: For what it's worth, JSLint does not tolerate any whitespace between . and a property name. Tangential, but does JSLint then require either long sequences of property accesses and method calls to occur all on a single line or to always be

Re: Reserved word property access and line breaks

2010-08-28 Thread Peter van der Zee
The impact seems minimal (how often would this occur in the wild). I don't like adding restrictions to the language for the sake of protecting a possible defect, but I don't really see this as a problem since it's not exactly a best practice to use reserved keywords as property names anyways ;)

Re: Reserved word property access and line breaks

2010-08-24 Thread Oliver Hunt
It does seem reasonable to disallow new lines in that context. --Oliver On Aug 24, 2010, at 1:53 PM, Allen Wirfs-Brock wrote: Consider the following JavaScript code fragment: var x=foo. if (ab) -bar; If this showed up in real code, it would probably be either as a typo where either