On Tue, Nov 30, 2004 at 02:26:06PM -0800, Brent 'Dax' Royal-Gordon wrote:
: Larry Wall <[EMAIL PROTECTED]> 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...)

In lines with the '...' "..." and <...> <<...>> progressions,
the following progression has a nice symmetry:

$iter -->        #extract next (one) element from iterator $iter
$iter ==>        #pipeline all elements (lazy) in turn from iterator $iter

However, I haven't been paying a lot of attention, to the current state
of affairs, so it is probably broken in some way.

-- 

Reply via email to