actonlang / acton

The Acton Programming Language
https://www.acton-lang.org/
BSD 3-Clause "New" or "Revised" License
80 stars 7 forks source link

Remove variable shadowing? #372

Open plajjan opened 2 years ago

plajjan commented 2 years ago

What is a good use of overshadowing a variable?

plajjan commented 2 years ago

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 commented 1 year ago

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