Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

take()'s return value

4 views
Skip to first unread message

Gabriele Renzi

unread,
Jan 29, 2007, 4:20:16 AM1/29/07
to perl6...@perl.org
Hi everyone,

I wonder: why does take inside a gather structure returns undef?
I think it would be nicer if it could return the taken value, so that,
for example one can write something like:

say take 2

or like:

while cond($n) {
my $res = compute($n)
$n /= take($res)
}

there is a reason why this is a completely stupid idea?

0 new messages