No doubt some of you have seen the Draft S07-iterators, but for those who haven't:

http://svn.pugscode.org/pugs/docs/Perl6/Spec/S07-iterators.pod

I have some questions here (mostly directed to Daniel Ruoso, but others can feel free to chip in if they have thoughts).

        Should laziness/eagerness be a property of the operator?

You write "The iterator role represents the lazy access to a list". Why only lazy access?

        You write:  my $item = =$foo;

        Does that get one item from the iterator object?

You specify that the .Iterator() object on something that does List will return the appropriate iterator. I changed it to be .iterator() (so that it's lowercase like all the other List.whatever() functions); what's the function signature?

        method iterator() {...}

        ...or are there parameters?

        :)


---------------------------------------------------------------------
| Name: Tim Nelson                 | Because the Creator is,        |
| E-mail: [EMAIL PROTECTED]    | I am                           |
---------------------------------------------------------------------

----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----

Reply via email to