feat: shadowing gno1 #1779
Labels
breaking change
Functionality that contains breaking changes
gno-proposal
Gnolang change proposals
📦 🤖 gnovm
Issues or PRs gnovm related
security
Security-sensitive issue
After a discussion with @jaekwon, we reached a conclusion that for gno, we want to allow shadowing of identifiers which are defined in a local scope. This means that a user cannot shadow any global identifiers and therefore
uverse
identifiers.The main reason for this is one of readibility and security, as people tend to think they know what something is and not verify.
Allowing local scope shadowing will be sufficient for minimizing the ergonomics impact.
Relevant issues
#1758
#1091
The side-effects of this decision means that whenever we add a new
uverse
identifier, it would be a breaking change.As far as
gno2
, which is not yet clearly defined, we plan to have a rule as capitalized identifiers to be excluded from shadowing.The text was updated successfully, but these errors were encountered: