Clojure 1.2 introduced protocols.
Clojure 1.2引入了协议。
Clojure是一种Lisp方言。
Clojure treats each issue separately.
Clojure将单独处理每一个问题。
This follows Clojure naming conventions.
这遵循了Clojure 的命名约定。
Clojure is fundamentally different in all respects.
Clojure在各个方面都有根本的不同。
This article covers the Clojure programming language.
本文介绍了Clojure编程语言。
The simplest type of Clojure concurrency model is vars.
最简单的Clojure并发模型是vars。
Listing 1 shows a simple example of using vars in Clojure.
清单1展示了在Clojure中使用vars的简单例子。
Remember that in Clojure everything is immutable by default.
要记得,默认情况下在Clojure 中所有事物都是不可变的(immutable)。
GPars implements much of the agent functionality found in Clojure.
GPars实现Clojure中的很多agent功能。
Being dynamically typed doesn't mean that Clojure doesn't have types.
动态类型并不意味着Clojure没有类型。
Second, you're confined to running the query only via your Clojure code.
其次,您被限制为只能通过您的Clojure 代码运行查询。
First we use the STR function from Clojure to convert the char to a string.
首先,我们使用Clojure的str函数来将这个char转变为字符串。
Remember: Functions are the primary building blocks of programs in Clojure.
记住:函数是Clojure程序的基石。
The examples are written from the perspective of coding at the Clojure REPL.
这些示例是从ClojureREPL编码的角度进行编写的。
As it turns out, Clojure has an even more-abbreviated way to define closures.
而Clojure具有一种更为简化的方式来定义闭包。
InfoQ: Could you give a short overview of how your Clojure code is structured?
InfoQ:你能简要介绍一下你们的Clojure代码是如何组织的吗?
Our challenge now is to take a tree of Clojure maps and traverse or manipulate it.
我们现在的挑战在于获得一个Clojuremap树,并遍历或操作该树。
Clojure: Visit the Clojure website and check out the Protocols and Datatypes pages.
Clojure:访问Clojure网站并查看协议和数据类型页面。
Clojure libraries inspired by Ruby libraries are one way the two languages interact.
Clojure库受Ruby库的启发,是这两种语言的相互影响的一种途径。
There's a lot of next-level ideas in Clojure, and people are actually picking it up.
Clojure有很多下一层次的想法,人们实际上也正在使用它。
Clojure favors uniform interfaces, so it encourages storing structured data in maps.
Clojure支持统一接口,因此鼓励在映射中存储结构化数据。
Being a functional language, Clojure brings new tricks to data query and manipulation.
作为一种函数式语言,Clojure为数据查询和操作提供了新方法。
Agents are an important feature in Clojure and it's nice to see them show up in GPars.
Agents是Clojure中的一个重要特性,很高兴可以看到它们出现在GPars中。
This is not an introductory article to Clojure, so some familiarity with it is assumed.
本文并不是要介绍Clojure,因此假定读者已对Clojure比较熟悉。
Any language that is supported by JVM (Groovy, Bean shell, Clojure) can be added to it.
j VM支持的任何语言(Groovy,Beanshell,Clojure)都可以被添加进去。
Now you have solved several problems while learning how to use Clojure at the same time.
现在,您已经解决了几个问题,并同时掌握了该如何使用Clojure。
All in all, Clojure offers a lot of opportunities to write fast code in an elegant style.
总之,Clojure提供了很大的便利让你用优雅的风格写出运行飞快的代码。
This is a common pattern, and Clojure provides a programming model to address this: agents.
这是个通用的模式,并且Clojure提供了编程模型来予以解决:agents。
This aspect of Clojure has always bothered me because I'm so steeped in state-based thinking.
Clojure在这一方面一直困扰着我,因为我是如此沉迷基于状态的思考方式。
应用推荐