develooper Front page | perl.perl6.language | Postings from January 2003

Re: Arrays: Default Values

From:
Smylers
Date:
January 28, 2003 14:24
Subject:
Re: Arrays: Default Values
Message ID:
20030128222401.31090.qmail@onion.perl.org
Nicholas Clark wrote:

> I'm not sure. I think I like the idea of
> 
>   @a[0] = undef;
> 
> being a blip, but
> 
>   undef @a[0];
> 
> resetting the value to the default.

That thought crossed my mind as well before I got to your message ...

> Conceptually perl5 already has a distinction between assigning undef
> to an aggregate, and passing an aggregate to the undef operator:

... however I'm unconvinced that that's the sort of distinction that
should be encouraged.

Smylers



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About