Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there big syntax differences between Clojure and Lisp

I want to learn new language and I thought to start with Lisp. I want to know if I learn Lisp do I also know Clojure ( with minimal effort ), is there big syntax differences between Lisp and Clojure ?

like image 717
DayannaNZ Avatar asked Jan 13 '11 21:01

DayannaNZ


People also ask

What is the difference between Clojure and Lisp?

In this article, we conclude that Clojure is a mainly functional programming language that is capable of immutable data structure support whereas common lisp supports both imperative and functional programming language with the mutable data structure.

What makes clojure different?

Immutable data structures Clojure has features of an object-oriented language. So, it initially includes a set of immutable (unchangeable) structures and methods for working with them. They look like common JavaScript arrays, Hash Maps. But any operation can't change their values.

Is clojure a Lisp dialect?

Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system. Clojure is predominantly a functional programming language, and features a rich set of immutable, persistent data structures.

Is clojure a Lisp 1 or LISP 2?

Since Clojure is a Lisp-1, (global) functions can be dynamically rebound (if they are marked as dynamic).


2 Answers

There are not big syntax differences (mostly because Lisp family languages have almost no syntax), but there are certainly differences in other areas. Clojure has a lot of modern programming features particularly suited to high scalability (actors, references, etc) that are not present as such in a "classic" Lisp (such as Common Lisp).

Clojure is an active, well supported dialect of Lisp. If you want to learn a Lisp, you can't really go wrong with Clojure.

You may find more information in the answers to Which Lisp should I learn? .

like image 78
Greg Hewgill Avatar answered Oct 01 '22 12:10

Greg Hewgill


90% of what you learn while studying your first Lisp will carry over to your next.

like image 45
Psyllo Avatar answered Oct 01 '22 14:10

Psyllo