99Re: Request: option to disable ['something'] is better written in dot notation.
- Jul 4, 2008--- In firstname.lastname@example.org, "saj14saj" <saj14saj@...> wrote:
>I have added a 'sub' option to JSLint. It turns off the check for
> I understand and agree with the warning about dot notation in general.
> My use case for requesting a configuration option to disable it is this:
> Most of the property names are not legal in dot notation, such as
> x = row['@unid'];
> but a few of them are. For consistency of code, I reference all of the
> properties in the object with bracket notation, which leads to a host
> of warnings regarding the few properties that would be valid in dot
suboptimal subscript notation.
- << Previous post in topic Next post in topic >>