Few things II
    Sean Kelly 
    sean at f4.ca
       
    Thu Aug  9 08:29:41 PDT 2007
    
    
  
bearophile <bearophile wrote:
> 
> --------------------------
> 
> BCS <ao at pathlink dot com>:
> 
>> under the covers, yeild is a disaster IMO<
> 
> Maybe this is true for a low level language, I don't know. But in Python it's very useful and quite commonly used (but I don't like its V.2.5 use for coroutines, it's too much confusing and its syntax is dirty because it looks like a statement used as an expression). It's used in C# too and it seem to cause no disasters :-) It avoids you to mess with the opApply.
For what it's worth, Tango contains a Fiber implementation that can be 
used for coroutines and such.
Sean
    
    
More information about the Digitalmars-d
mailing list