!0

Abigail abigail at abigail.be
Fri Feb 13 00:11:30 GMT 2009


On Thu, Feb 12, 2009 at 03:59:55PM -0800, David Alban wrote:
> On Thu, Feb 12, 2009 at 1:41 PM, Abigail <abigail at abigail.be> wrote:
> > What's next?
> >
> >  Readonly my $ZERO => 0;
> >  Readonly my $ONE  => $ZERO + 1;
> 
> aesthetic preference.  i like that:
> 
>   $var = $EMPTY_STRING;
> 
> is very readable.  more so for me than:
> 
>   $var = '';

Well, I wasn't joking. A '0' can be easily misread as a 'O'. 
And a 'l' can be mistaken as a '1'.

No such problem when using $ZERO and $ONE.



Abigail


More information about the london.pm mailing list