Lambda syntax, etc

BCS ao at pathlink.com
Wed Feb 4 14:40:46 PST 2009


Reply to Bill,

>> I was about to say the same thing, but I think Yigal was just mixing
> two distinct suggestions together:
> 1) the trailing delegates proposal (aka ruby block) and

I like that

> 2) A ruby-like syntax for delegate literals : {|a,b| return a+b;}

I don't like that


One #1 I'd be inclined to requier that the function be defined like

> void DoIt(int delegate(int) dg...)

D laready has this syntax for Typesafe Variadic Functions  http://www.digitalmars.com/d/1.0/function.html





More information about the Digitalmars-d mailing list