Moritz Lenz moritz-at-casella.verplant.org |Perl 6| wrote:
map *is* lazy, as are all list builtins that can be lazy (which doesn't
include stuff like sort, which has to look at all items anyway).


Are you sure that it doesn't imply order of evaluation by default? I'm all for it (to be different from 'for') but worry about backward compatibility. I guess using 'eager' in front will fix the problem if you really wanted ordered side effects, so that won't bother people too much.

I also wonder about a general way to give hints or rather constraints, such as whether it can be multi-threaded or merely delayed 'till needed.

--John

Reply via email to