On Mon, Jan 29, 2007 at 01:22:49PM +0100, Carl Mäsak wrote:
: gabriele (>):
: >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?
: 
: I was thinking the same thing the other day. Maybe this is a good one
: to post to p6l, actually. Unless someone already knows the answer or
: can find it in the synopses.

Hmm, it's been discussed, but for some reason didn't make it into the spec.
I've now fixed that in S04.  Thanks for the reminder!

Larry

Reply via email to