Skip to content

Disallow virtual modifiers #12483

Open
Open
@chriseth

Description

@chriseth

Modifiers are already a very complicated concept and we should not make it more difficult by allowing them to be virtual. Except for weird cases (adding another placeholder, putting it inside a loop, ...), you can get the same behaviour by adding a virtual function that is called from the modifier.

I would propose to remove this feature from the language with 0.9.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking change ⚠️language design :rage4:Any changes to the language, e.g. new featureslow effortThere is not much implementation work to be done. The task is very easy or tiny.medium impactDefault level of impactmust haveSomething we consider an essential part of Solidity 1.0.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions