x.sizeof vs typeid(x)

downs default_357-line at yahoo.de
Wed Feb 6 17:09:22 PST 2008


Sergey Gromov wrote:
> Are you sure this is to the better ?  I'm not quite fond of D's freedom
> in syntax.  It already allows to write an unreadable code like this:
> 
> use(context) in (GL gl) {draw(gl);}
> 
> auto GetEven = stackthread = (int delegate() read, void delegate(int) yield) {...}
> 

I just don't like "});". The less closing parens the better. :)


Semantically, read it as "auto GetEven = stackthread
                                       = (int delegate() read, void delegate(int) yield) { ... };]".

 --downs



More information about the Digitalmars-d mailing list