TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Macros: their power and challenges — (take 5 william-byrd)

49 点作者 fogus超过 13 年前

4 条评论

apgwoz超过 13 年前
I hope that the macro system he's working on bares some fruit. Personally, I've always liked explicit-renaming macros, as they provide you the benefits of both hygiene and (almost) the convenience of defmacro. But, the pattern language of syntax-rules makes it much easier to maintain macros, as you can actually see what it is you're matching without first interpreting the series of list operations... Hopefully the two will be married in some glorious way!
评论 #3601278 未加载
评论 #3601269 未加载
mindslight超过 13 年前
I started writing a comment asking what is so complex about syntax-case, as it's just pattern matching for procedural macros combined with the optimization of bolted-on uber-symbols (syntax marks). Then I realized I'd answered my own question.<p>I think clojure has a pretty good foundation for hygienic procedural macros - increase the complexity of your symbol type and commit to their values asap. Once you're in procedural macro land, you're inherently dealing with the complexity of the syntax model, so it might as well be as simple as possible.
gwern超过 13 年前
&#62; Oleg is an emissary from some advanced alien race. Working with him is both exhausting and enlightening.<p>See? It's not just us Haskellers!
jules超过 13 年前
Is the miniKanren talk available somewhere?
评论 #3600863 未加载