3 ms·
That seems somewhat natural to me, to be honest. The same could happen in Rust, or most languages with shadowing. IMO, allowing it is the lesser evil.
by Veedrac 11y ago
That seems somewhat natural to me, to be honest. The same could happen in Rust, or most languages with shadowing.
IMO, allowing it is the lesser evil.
- fpoling 11y agoThe issue here is not shadowing in general but shadowing withing a single statement like in n := n + 2. A sane rule would not allow to refer to the declared name in the right-hand side expression.