I know its a silly thing to do, but how should push and pop behave with (0 .. Inf) lists?
I read through this thread: http://www.mail-archive.com/perl6-all@perl.org/msg39891.html
But I did not see an "answer", only various suggestions.
Currently in Pugs these two examples:
pugs -e 'my @p = (0 .. Inf); push @p, 10;' pugs -e 'my @p = (0 .. Inf); pop(@p);'
will go on forever (as you would expect it to do).
Is this the correct behavior? Or should it return Inf or somesuch? Or even maybe error?
Thanks,
Stevan