On 08/20/2011 08:37 PM, Timon Gehr wrote:
On 08/20/2011 08:21 PM, bearophile wrote:
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

Actually, since some forms of shadowing are still allowed, it makes the
generation of code slightly more complex.
> [snip.]

Oh, disregard that first sentence.

How does disallowing shadowing make code generation via string mixins simpler?

Reply via email to