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

怎么理解:Self-cleaning Macros #5

Open
hongjiang opened this issue May 14, 2013 · 2 comments
Open

怎么理解:Self-cleaning Macros #5

hongjiang opened this issue May 14, 2013 · 2 comments
Assignees
Labels

Comments

@hongjiang
Copy link
Member

为什么叫“self-cleaning" ?cleaning表示什么?

这里介绍了 hygienic macro的概念: http://en.wikipedia.org/wiki/Hygienic_macro
主要是scheme里采用,scala 2.10里也引入了。

谁能详细阐释一下 hygienic macro 与 self-cleaning macro ?

@ghost ghost assigned fujohnwang May 14, 2013
@fujohnwang
Copy link
Member

macros还没时间细研究,先mark一下,等有一些心得体会的时候再提交comment,可能要做很多功课,牵扯到其他语言层面macros机制的实现,scala中的实现, scala新reflect api以及macros api的调研等等

@kj021320
Copy link

kj021320 commented Feb 4, 2014

一个是自己清理宏里面的变量和全局变量冲突,一个是系统自动处理

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

3 participants