acton icon indicating copy to clipboard operation
acton copied to clipboard

Remove variable shadowing?

Open plajjan opened this issue 4 years ago • 2 comments

What is a good use of overshadowing a variable?

plajjan avatar Nov 18 '21 12:11 plajjan

I'm thinking maybe that overshadowing should require an extra keyword rather than being the default (depending on context?)? I think some language do this already...

plajjan avatar Dec 29 '21 19:12 plajjan

zig doesn't allow shadowing. another point to disallow this... :)

plajjan avatar Jun 26 '23 20:06 plajjan