develooper Front page | perl.perl6.language | Postings from May 2005

Re: (1,(2,3),4)[2]

Thread Previous | Thread Next
From:
wolverian
Date:
May 25, 2005 11:57
Subject:
Re: (1,(2,3),4)[2]
Message ID:
20050525185027.GP17794@sci.fi
On Wed, May 25, 2005 at 01:38:27PM -0500, Rod Adams wrote:
> Or use
> 
>    @a <== 1,2,3;

I would just like to say that I like this idiom immensely.

    my @foo <== 1, 2, 3;

reads extremely well to me, especially since I've always disliked the
usage of '=' as an operator with side effects. (I'm strange like that.)

-- 
wolverian

Thread Previous | Thread Next


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