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

Add support for #() macro #31

Open
austinzheng opened this issue Jan 15, 2015 · 1 comment
Open

Add support for #() macro #31

austinzheng opened this issue Jan 15, 2015 · 1 comment

Comments

@austinzheng
Copy link
Owner

Add support for the inline function reader macro (e.g. #(doSomething %0 %1)). Expanding this macro is relatively straightforward, with the caveat that the expander needs to know know many %n tokens there are (or if only % is used).

A good resource is: http://stackoverflow.com/questions/13204993/anonymous-function-shorthand

@austinzheng austinzheng changed the title [reader] Add support for #() macro Add support for #() macro Jan 15, 2015
@austinzheng
Copy link
Owner Author

Actually... %n tokens are 1-indexed, % is always %1, and however many tokens there are is determined by the highest n value. Finally, #() can't be nested.

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

No branches or pull requests

1 participant