On Thursday, May 29, 2003, at 04:48 PM, Luke Palmer wrote:
To nitpick:
my $result is lazy::threaded := { slow_fn_imp @_ };
Pursuing this lazy-threaded variables notion, a question. Given:
sub slow_func is threaded { # me likey this auto-parallelizing syntax!
...
}
Would we want to say that _both_ of these have the lazy-blocking behavior?
my $result := slow_func(); print $result;
my $result = slow_func(); print $result;
Or would the first one block at C<print>, but the second block immediately at the C<=>?
The obvious answer is that the := binding "passes through" the lazyness, but the = assignment doesn't. But I wonder if that isn't a bit too obscure, to put it mildly.
MikeL