foo!(bar) ==> foo{bar}

Moritz Warning moritzwarning at web.de
Mon Oct 6 14:29:50 PDT 2008


On Mon, 06 Oct 2008 12:52:39 -0700, Walter Bright wrote:

> The foo.(bar) syntax seems to be sinking. The foo{bar} seems to be the
> most practical alternative. So, how about putting it in the next D2
> release on a trial basis, so people can try it out and see how it looks?

While foo{bar} is an acceptable syntax for foo!(bar),
it's only a very minor improvement if any.
Not worth the resulting hassle (rewriting code and docs).

Maybe some better syntax comes around (e.g. some clean way to move  
template parameters into the function header?).



More information about the Digitalmars-d mailing list