Proposal idea - generators

Howard Lovatt howard.lovatt at iee.org
Wed Apr 1 13:34:07 PDT 2009


Hi Neal,

I couldn't see in your blog where the problem is. Note I am not
proposing, and I don't believe the original poster was either, a
continuation style yield. More a Scala and other non-lazy functional
language style were the results are stored in a Map and the Map is
returned, i.e. like applying (mapping) a function to each element of a
list but with more control (in particular break and continue
functionality).

Maybe you read the original post differently to me.

  -- Howard.

2009/4/1 Neal Gafter <neal at gafter.com>:
> On Tue, Mar 31, 2009 at 4:14 AM, Howard Lovatt <howard.lovatt at iee.org> wrote:
>> You can write a library to do this and also have break/continue
>> control and parallel processing if needed:
>>
>>       http://www.artima.com/weblogs/viewpost.jsp?thread=240412
>
> Howard-
>
> Your library does not "do this".  See
> http://gafter.blogspot.com/2007/07/internal-versus-external-iterators.html
> for an explanation of why not.
>
> Regards,
> Neal
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>



More information about the coin-dev mailing list