Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Decorators #35

Open
theRealProHacker opened this issue Sep 5, 2022 · 0 comments
Open

Decorators #35

theRealProHacker opened this issue Sep 5, 2022 · 0 comments

Comments

@theRealProHacker
Copy link

I just wanted to propose that decorators are resolved like this:

@{decorator}
def {func_name}({args}):
    {code}

to

let {func_name} = {decorator}(|| {
   {code}
})

Unfortunately, I am not used to Rust, so this might be totally wrong, but I saw that decorators weren't implemented yet and thought this might be a simple improvement

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant