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的写法很蛋疼 #62

Open
HerringtonDarkholme opened this issue Jun 1, 2016 · 5 comments
Open

macro的写法很蛋疼 #62

HerringtonDarkholme opened this issue Jun 1, 2016 · 5 comments

Comments

@HerringtonDarkholme
Copy link
Contributor

HerringtonDarkholme commented Jun 1, 2016

  1. 定义和调用的语法不一致
    定义里用的(),而调用里用的是[]
  2. 参数列表是摆设
  3. ::的意义不明,而且很难搜文档
  4. 不写()还会报错syntax error,其实如果前方出现::就一定能判断是个macro的声明了,圆括号是不需要的(目前是不需要的,因为参数列表是摆设)
::div.new-macro (useless, param)
  :let uselss = *[0], param = *[1]

div.new-macro = ['a', 'b']
@hax
Copy link
Contributor

hax commented Jun 1, 2016

历史遗迹。未来会统一掉。

@hax hax added the enhancement label Jun 1, 2016
@hax hax added this to the 2.0 (plan) milestone Jun 1, 2016
@HerringtonDarkholme
Copy link
Contributor Author

未来太远了
jedi的1.0milestone overdue了3年才完成,没计划就是坑啊

@hax
Copy link
Contributor

hax commented Jun 1, 2016

当中其实没怎么花时间。去年年中才开始重新整理。

@iceonion
Copy link

贺老

@hax
Copy link
Contributor

hax commented Feb 26, 2018

@iceonion what?

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

3 participants