Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro decorators #1692

Open
Carreau opened this issue Sep 8, 2016 · 1 comment
Open

Macro decorators #1692

Carreau opened this issue Sep 8, 2016 · 1 comment
Labels

Comments

@Carreau
Copy link
Member

Carreau commented Sep 8, 2016

Hey there !

Looking at macros that seem super cool. One of the first things I tried was to use a macro as a decorator:

def foo(a:'ast'):
    parint(a)

@foo!
def bar():
    pass

I did not see any mention of that anywhere so just opening an issue.

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@scopatz
Copy link
Member

scopatz commented Sep 8, 2016

OOf, yeah, I didn't think to implement this. Though I bet the following does work.

@foo!()
def bar():
    ....

@scopatz scopatz added the feature label Sep 8, 2016
@scopatz scopatz added this to the v0.5 milestone Sep 8, 2016
@gforsyth gforsyth removed this from the v0.5 milestone Jul 14, 2019
@anki-code anki-code added the macro label Dec 3, 2021
@anki-code anki-code removed the feature label Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants