More name hiding
bearophile
bearophileHUGS at lycos.com
Sat Aug 20 11:21:44 PDT 2011
Timon Gehr:
> In some cases, shadowing can be handy for code generation via string
> mixins (the shadowing that is disallowed, not the shadowing of globals).
Making the language more forbidding makes the generation of code simpler. But it's simpler to write code that generates correct code, than for humans to write bug-free code. So it's much more important to design the language to be good (not bug-prone) to be written by hand.
Bye,
bearophile
More information about the Digitalmars-d
mailing list