Two questions about forEach
Gregg Wonderly
gregg at wonderly.org
Thu Aug 9 05:30:06 PDT 2012
On 8/9/2012 2:22 AM, Mike Duigou wrote:
> Does every item get refreshed in order to complete findFirst? Do you really
> want findFirst to inspect every element? The semantics and efficiency are
> important.
Yes, but I still really feel that "guessing" and "optimizing" how efficiency
will be achieved, before we've had this in the wild, is completely premature.
I know that this feels, right now, like a lazy programming style, which then
becomes an inefficient run time execution. But, do we really want to set, in
stone, that foreach, can't return the stream?
Gregg Wonderly
More information about the lambda-dev
mailing list