Exception transparency

Nathan Bryant nathan.bryant at linkshare.com
Tue Jun 8 18:07:20 PDT 2010


I wrote:

 

> Iterator.parallel().forEach(foo) would produce a compile-time warning (or error?) if foo is impure by your definition. 

 

Except – oh, here I go again: it probably can’t. It probably at best results  in a runtime exception (see my earlier interface definition examples as to my thinking behind that one) – the problem is that one wants to make ParallelIterable extend Iterable.

 

Hmm.



More information about the lambda-dev mailing list