Steve Yegge's rant on The Next Big Language

BCS BCS at pathlink.com
Tue Feb 13 09:43:34 PST 2007


Jarrett Billingsley wrote:
> "BCS" <ao at pathlink.com> wrote in message 
> news:ce0a334373d08c91d138f82c904 at news.digitalmars.com...
> 
>>To pick at a few:
>>Does any language do interators for user type as language features? You 
>>have to write them your self in every language I know of.
> 
> 
> ....well if you don't write the iterator for your user type, how is the 
> language going to know how to iterate over it?  When Steve said "iterators 
> and generators" as a 'thing to have', I think he meant that they are 
> first-class primitives in the language.  Having to write a custom iterator 
> for a class wouldn't change that fact.
> 

Strait up question: how does D fail in this regard? opApply and delegate 
based foreach cover a /lot/ of ground.



More information about the Digitalmars-d-announce mailing list