custom attribute proposal (yeah, another one)
deadalnix
deadalnix at gmail.com
Sat Apr 7 04:20:16 PDT 2012
Le 07/04/2012 05:29, Kapps a écrit :
> I slightly prefer this function method over the struct method because:
> 1) No need to generate a custom struct for everything. Plenty of things
> are just a true or false, or a string. Saves a little bit of TypeInfo
> generation.
If the type isn't used at runtime, the compiler should be able to remove
that dead part of the code. If it doesn't, it is an implementation
issue, and shouldn't be solved by language design decision.
More information about the Digitalmars-d
mailing list