__traits so long and ugly, what about ::?

Jonathan M Davis jmdavisProg at gmx.com
Thu Mar 31 10:37:45 PDT 2011


On 2011-03-31 06:35, Kagamin wrote:
> Ary Manzana Wrote:
> > I just hate it when you have to write too much
> 
> hasMember!(S, "m")
> is only 1 character longer than
> S::hasMember("m")
> 
> not too much for me

And hasMember!(S, "m") is actually consistent with the rest of the language 
and straight forward to read for those who know the language. 
S::hasMember("m") just adds more syntax where there's no need for it, and 
makes it so that there's that much more syntax to learn and keep straight.

- Jonathan M Davis


More information about the Digitalmars-d mailing list