-
Notifications
You must be signed in to change notification settings - Fork 6.1k
static_assert #8146
Copy link
Copy link
Open
Labels
high impactChanges are very prominent and affect users or the project in a major way.Changes are very prominent and affect users or the project in a major way.language design
Any changes to the language, e.g. new featuresAny changes to the language, e.g. new featuresmedium effortDefault level of effortDefault level of effortmust have eventuallySomething we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.Something we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.needs designThe proposal is too vague to be implemented right awayThe proposal is too vague to be implemented right away
Metadata
Metadata
Assignees
Labels
high impactChanges are very prominent and affect users or the project in a major way.Changes are very prominent and affect users or the project in a major way.language design
Any changes to the language, e.g. new featuresAny changes to the language, e.g. new featuresmedium effortDefault level of effortDefault level of effortmust have eventuallySomething we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.Something we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.needs designThe proposal is too vague to be implemented right awayThe proposal is too vague to be implemented right away
requireandassertcan be used to write formal specs into Solidity, but many people don't because they automatically lead to extra bytecode increasing gas costs.static_requireandstatic_assertcould be logical only, without code generation.One variation would to also generate code if compiled in debug mode (or similar).