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

Re: Angle quotes and pointy brackets

From:
Rod Adams
Date:
November 30, 2004 14:43
Subject:
Re: Angle quotes and pointy brackets
Message ID:
41ACF7E8.4020607@rodadams.net
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? 
>I propose one of:
>
>    $fh ->
>    $fh» (and $fh>>)
>    $fh>
>
>All three have connotations of "the next thing".  The first one might
>interfere with pointy subs, though, and the last two would be
>whitespace-sensitive.  (But it looks like that isn't a bad thing
>anymore...)
>
>Any other suggestions, people?
>  
>

++$fh






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