Jonathan M Davis:

Why not just prevent identity assignments altogether? What would be the
purpose of even allowing a variable to be assigned itself?

Despite being sometimes useful in generic code (where?), self-assignment is a common source for bugs.

Bye,
bearophile

Reply via email to