> -----Original Message-----
> From: Curtis Poe [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 2:25 PM
> To: Shawn; [EMAIL PROTECTED]
> Subject: Re: resetting foreach loops and @lists
> 
> ...
>     With the '=>' (a.k.a. 'fat comma'), the left side of the operator
>     does no (sic) need to be quoted IF IT DOES NOT CONTAIN WHITESPACE.

Actually, it needs to be quoted if it doesn't look like an identifier,
(with an optional leading minus sign). So things like the following do
need to be quoted:

   fish&chips
   drip-dry
   +factor

But the main point is that it is useful, common practice, and more
readable to omit the quotes for "simple" words used as hash keys in
braces or to the left of the => operator. And "use strict" doesn't
care.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to