Lambda syntax, etc
Christopher Wright
dhasenan at gmail.com
Thu Feb 5 15:30:18 PST 2009
Kagamin wrote:
> Yeah, C# lambdas are the killer feature. Slick, readable, C-compatible. Anders knows his job. Let's face it: delegate literals suck a little, mixins as delegates suck a lot, the former is too verbose, the latter just sucks.
C# delegates in C# 2.0 are annoying. I try not to use them. The reason:
D:
void foo(void delegate(int) dg);
C#:
delegate void SomeName(int i);
void foo(SomeName dg);
Does C# 3 fix this? I've seen the new syntax for defining delegates, but
not for using them.
More information about the Digitalmars-d
mailing list