Reserved word property access and line breaks

Douglas Crockford douglas at crockford.com
Sun Aug 29 12:28:59 PDT 2010


  On 11:59 AM, Peter van der Zee wrote:
> 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: CSFLD)
I think that is one of the best possible reasons for modifying a language.

For what it's worth, JSLint does not tolerate any whitespace between . 
and a property name.


More information about the es-discuss mailing list