* Larry Wall <[EMAIL PROTECTED]> [2008-09-11 21:20]:
> As a first shot at that definition, I'll submit:
> 
>     1 .. $n   # easy
>     1 .. *    # hard
> 
> On the other hand, I can argue that if the first expression is
> easy, then the first $n elements of 1..* should also be
> considered easy, and it's not hard till you try to get to the
> *. :)
> 
> It could also be that I'm confusing things here, of course, and
> that 1..* is something easy and immutable that nevertheless
> cannot be calculated eagerly. More to think about...

In some sense, from the reactive programming perspective `1..*`
is actually easier than `1..$n`. For the latter’s iterator the
answer to “do you have another element” implies a conditional
somewhere, whereas for the former’s it’s trivially “yes.”

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to