But it looses all the interest of having a nice name for your method.

Sent from my smartphone.
On Aug 27, 2011 9:50 PM, "Nathan Sweet" <[email protected]> wrote:
>>>Does work in all implementations?
> Although,
> o['delete'] = true;
> is perfectly valid, and will work in all browsers.
>
> On Sat, Aug 27, 2011 at 12:49 PM, Nathan Sweet <[email protected]
>wrote:
>
>> >>Does work in all implementations?
>> Sorry, Peter's right, it is invalid, but the point still stands about the
>> nature of JSLint.
>>
>> On Sat, Aug 27, 2011 at 12:48 PM, Nathan Sweet <[email protected]
>wrote:
>>
>>> >>And why do jslint and jshint cry? Just a bug?
>>> JS lint is quite opinionated, and wants to direct you towards best
>>> practices. JSLint will tell you not to do things that are perfectly
valid.
>>> This general opinionated nature is a good thing, because it will,
overall,
>>> make you a better JavaScripter, but there are times when it can/should
be
>>> ignored.
>>>
>>>
>>> On Sat, Aug 27, 2011 at 12:24 PM, Xavier MONTILLET <
>>> [email protected]> wrote:
>>>
>>>> Does work in all implementations?
>>>>
>>>> And why do jslint and jshint cry? Just a bug?
>>>>
>>>> Sent from my smartphone.
>>>> On Aug 27, 2011 9:20 PM, "Peter van der Zee" <[email protected]> wrote:
>>>> > On Sat, Aug 27, 2011 at 9:05 PM, xavierm02 <[email protected]>
>>>> wrote:
>>>> >> Hi,
>>>> >> I was wondering when it was allowed to use reserved words. Let's say
>>>> >
>>>> > You can use reserved words as property names of objects. You cannot
>>>> > use them as variable names. Note that the property names of the
object
>>>> > literal are not "variables". So in your example:
>>>> >
>>>> > var o = {
>>>> > delete: true
>>>> > };
>>>> >
>>>> > `o` is a variable and `delete` is a property name.
>>>> >
>>>> > - peter
>>>> >
>>>> > --
>>>> > To view archived discussions from the original JSMentors Mailman
list:
>>>> http://www.mail-archive.com/[email protected]/
>>>> >
>>>> > To search via a non-Google archive, visit here:
>>>> http://www.mail-archive.com/[email protected]/
>>>> >
>>>> > To unsubscribe from this group, send email to
>>>> > [email protected]
>>>>
>>>> --
>>>> To view archived discussions from the original JSMentors Mailman list:
>>>> http://www.mail-archive.com/[email protected]/
>>>>
>>>> To search via a non-Google archive, visit here:
>>>> http://www.mail-archive.com/[email protected]/
>>>>
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>>
>>>
>>>
>>
>
> --
> To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to