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

What is the state of macro support? #45

Closed
bew opened this issue Apr 24, 2017 · 3 comments
Closed

What is the state of macro support? #45

bew opened this issue Apr 24, 2017 · 3 comments

Comments

@bew
Copy link

bew commented Apr 24, 2017

macro a_macro
  42
end
icr(0.22.0) > macro a_macro
icr(0.22.0) >   42
icr(0.22.0) >   end
can't define macro inside def

  macro a
  ^
icr(0.22.0) > 

Are macro unsupported? if yes, maybe add a section in the readme mentionning that?
Is it possible to support them in any way?

@jwoertink
Copy link
Collaborator

They are slightly supported:

icr(0.22.0) > class Test
icr(0.22.0) >   macro a_macro
icr(0.22.0) >   42
icr(0.22.0) >   end
icr(0.22.0) >   end
 => ok
icr(0.22.0) > Test.a_macro
 => 42

They currently can't be supported outside of a class or module without some big rewrite (which will probably need to happen soon).

@jwoertink
Copy link
Collaborator

actually.. scratch that. I think I can add this in 🤓

@bew
Copy link
Author

bew commented May 4, 2017

Oh that's nice! 3 addition to support almost all macros... really neat!

greyblake added a commit that referenced this issue Sep 14, 2017
Adds slightly better support for macros. fixes #45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants