develooper Front page | perl.perl6.language | Postings from December 2004

Re: Angle quotes and pointy brackets

Thread Previous | Thread Next
From:
Michele Dondi
Date:
December 2, 2004 02:05
Subject:
Re: Angle quotes and pointy brackets
Message ID:
Pine.LNX.4.61.0412021101240.11158@leia.pcteor1.mi.infn.it
On Tue, 30 Nov 2004, Brent 'Dax' Royal-Gordon wrote:

> I like this in general.  However...
>
> Larry Wall <larry@wall.org> wrote:
>>     * Since we already stole angles from iterators, «$fh» is not
>>         how you make iterators iterate.  Instead we use $fh.fetch (or
>>         whatever) in scalar context, and $fh.fetch or @$fh or $fh[]
>>         or *$fh in list context.
>
> I believe you tried this one a couple years ago, and people freaked
> out.  As an alternative, could we get a different operator for this?
[snip]
> Any other suggestions, people?

I think I will miss angles... well, at least for some time. Of the 
proposal above I like best @$fh, since it's the one that most conveys the 
idea of syntactic sugar for iteration while still being fundamentally 
intuitive.


Michele
-- 
Se, nella notte in cui concepi' il duce,
Donna Rosa, toccata da divina luce,
avesse dato al fabbro predappiano
invece della fica il deretano,
l'avrebbe presa in culo quella sera
Rosa sola e non l'Italia intera.
- Poesia antifascista
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