pyrs icon indicating copy to clipboard operation
pyrs copied to clipboard

Decorators

Open theRealProHacker opened this issue 2 years ago • 0 comments

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

theRealProHacker avatar Sep 05 '22 17:09 theRealProHacker