identof || toIdent - feature suggestion / question

Frank Benoit keinfarbton at nospam.xyz
Sat Jul 1 04:22:11 PDT 2006


> Comments ? Suggestions ?

I think it is much too dangerous. This will make it much more difficult
to have code refactoring tools like the one in eclipse. This will also
decrease the code readability. Everything you write can go into
somewhere, make funky strings and change types as needed.

I think the right place to do such things is a separate code generator,
not the template mechanism.

Everytime I thought I can make funky things with template, I came back
to the point where I think "make it without, templates are hell".
Error messages with 2k character identifiers, exploding link time, ...
They are good and necessary for typesafe containers and library code
base on user supplied types. But I don't think that it is a good thing
to go further.

Sorry for that probably unproductive posting :)




More information about the Digitalmars-d mailing list