本文介绍了从初学者的角度来看,Clojure更接近Scheme或Common Lisp?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想学习Clojure,我应该从学习Scheme还是Common Lisp开始?

If I want to learn Clojure, should I start by learning Scheme or Common Lisp?

或者说Clojure与这两个都不同,学习Clojure本身?

Or is Clojure different enough from both of these, that I should just start learning Clojure by itself?

推荐答案

这将是你的好处,学习三个,如果只有这样你可以选择哪一个最适合您的需要。

It would be to your benefit to learn all three, if only so you can pick which one is best for your needs. All three have their own strengths and weaknesses.

Clojure和Scheme一样含糊不清,因为它是一个大多数功能的语言,并且是一个。 Clojure还从Common Lisp中借用了一些东西,比如多方法和宏,人们总是将酷的Common Lisp东西作为图书馆移植到Clojure。在编写Clojure之前,Clojure的创建者本身就是一个Common Lisp黑客。 Clojure从Scheme和CL中借用了很多术语和约定(但在许多领域也有自己的风格)。

Clojure is vaguely like Scheme in that it's a mostly-functional language and is a Lisp1. Clojure also borrows things from Common Lisp, like multimethods and macros, and people are always porting cool Common Lisp things to Clojure as libraries. The creator of Clojure was himself a Common Lisp hacker before writing Clojure. Clojure borrows a lot of terminology and conventions from Scheme and CL both (but also has its own flavors in many areas).

Clojure没有很多文献现在,这是一种新的语言(迄今只有和。还有很好的CL图书,如等等。

There is not a lot of literature for Clojure right now, it being such a new language (there is only one Clojure book so far). But there are loads of good Scheme-oriented books, like SICP and The Little Schemer / The Seasoned Schemer. There are also good CL books, like PCL, and many others.

Lisps也有很多历史,这是为了你的好处,了解历史,看看在哪里和为什么Clojure偏离它,如果没有别的。

Lisps also have a lot of history and it is to your benefit to understand the history, to see where and why Clojure deviates from it if nothing else.

我建议从Scheme开始,因为它是三个最简单的语言,因此最容易学习。然后在CL和Clojure中跳跃,直到你有东西的手柄,然后全然蒸发在两者中的哪一个你趋向。

I'd recommend starting with Scheme because it's the simplest language of the three and therefore easiest to learn. Then dabble in CL and Clojure until you have a handle on things, then go full-steam in whichever of the two you gravitate toward.

这篇关于从初学者的角度来看,Clojure更接近Scheme或Common Lisp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 10:23