Automatic Foreach

Bill Baxter dnewsgroup at billbaxter.com
Mon Apr 28 05:17:24 PDT 2008


Jarrod wrote:
>> What do you think?
> I think Walter really needs to get macros implemented in D.
> 
> Then we could all make our own little specific loops, which is far more 
> reasonable. Your idea is well demonstrated, but I don't like the syntax. 
> It doesn't really tell you what is going on just by looking at it.
> 
> 
> PS: You also might want to look at 'map' in phobos2's std.algorithm. 

Python has map() too, but people prefer to use list comprehensions for 
some reason.

--bb



More information about the Digitalmars-d mailing list