clojurescript
by Jacek Schae
由Jacek Schae
可视化概述ClojureScript和JavaScript之间的异同 (A visual overview of the similarities and differences between ClojureScript and JavaScript)
If you ever wondered how different — or similar — ClojureScript and JavaScript are, then this article should help answer this question. And hopefully it’ll surprise you a couple of times.
如果您想知道ClojureScript和JavaScript有什么不同(或相似),那么本文将有助于回答这个问题。 希望它会令您惊讶两次。
Code examples are available via GitHub Gist at the bottom of the article.
可通过本文底部的GitHub Gist获得代码示例。
基本 (Basics)
馆藏 (Collections)
功能 (Functions)
流量控制 (Flow Control)
真实性 (Truthiness)
州 (State)
互操作 (Interop)
Here are those code examples:
以下是这些代码示例:
If you enjoyed this article, and would like to be notified when I release similar stories, consider following me on Medium and Twitter.
如果您喜欢这篇文章,并且希望在我发布类似故事时收到通知,请考虑在Medium和Twitter上关注我。
Thanks to Brian Craft and Mike Fikes for catching the `cond` error, which has been corrected.
感谢Brian Craft和Mike Fikes捕获了已纠正的`cond`错误。
clojurescript