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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Using Match (2010)

13 点作者 steven741将近 7 年前

1 comment

bjoli将近 7 年前
The match most people use is match.scm by Alex Shinn, which can be found here:<p><a href="http:&#x2F;&#x2F;synthcode.com&#x2F;scheme&#x2F;match.scm" rel="nofollow">http:&#x2F;&#x2F;synthcode.com&#x2F;scheme&#x2F;match.scm</a><p>It is written in portable scheme and produces code that can easily be optimised. In guile, proper match statement is usually as fast as a hand rolled destructuring.<p>The downside is that it is not extensible by user code, but that can be implemented if you convert the match-two macro to something like a syntax case macro.