Skip to content

Implement decorators #4

@arnsholt

Description

@arnsholt

Classes and functions can be decorated with annotations. They should be reasonably straightforward to implement.

@dec(args) def foo(...): $body should compile to foo = dec(args)($body). So it's basically just a chain of function calls that need to be compiled. Same, mutatis mutandis, for classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions