-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Open
Labels
good first issue candidateCould be a "good first issue" but something is blocking it or it has open questions.Could be a "good first issue" but something is blocking it or it has open questions.language design
Any changes to the language, e.g. new featuresAny changes to the language, e.g. new featureslow effortThere is not much implementation work to be done. The task is very easy or tiny.There is not much implementation work to be done. The task is very easy or tiny.low impactChanges are not very noticeable or potential benefits are limited.Changes are not very noticeable or potential benefits are limited.must haveSomething we consider an essential part of Solidity 1.0.Something we consider an essential part of Solidity 1.0.
Description
We do not allow any operator on user defined value types, but delete is special: It is implicitly used when we remove an array element and variables of user-defined value type have a default value - so
delete x; // x is of type Type
is essentially equivalent to
Type y;
x = y;
which means we already implicitly use it and it would be confusing to allow re-defining delete to something else.
Metadata
Metadata
Assignees
Labels
good first issue candidateCould be a "good first issue" but something is blocking it or it has open questions.Could be a "good first issue" but something is blocking it or it has open questions.language design
Any changes to the language, e.g. new featuresAny changes to the language, e.g. new featureslow effortThere is not much implementation work to be done. The task is very easy or tiny.There is not much implementation work to be done. The task is very easy or tiny.low impactChanges are not very noticeable or potential benefits are limited.Changes are not very noticeable or potential benefits are limited.must haveSomething we consider an essential part of Solidity 1.0.Something we consider an essential part of Solidity 1.0.