Danny Watts
Danny Watts

Reputation: 579

Difference between clojure and clojurescript?

Can anyone please list some differences between Clojure and ClojureScript? (Please and thank you) Syntax wise differences?

Upvotes: 12

Views: 4385

Answers (2)

masukomi
masukomi

Reputation: 10892

The full differences between Clojure and ClojureScript are listed in detail here on the ClojureScript website.

According to that page, the primary differences lie in:

  • concurrent programming
  • hosting env (JVM vs a JS VM or Google's Clojure compiler)
  • numbers
  • characters
  • the read, and read-string methods are defined in a different place
  • load, and load-file only exist as special REPL functions
  • a few of the special forms aren't implemented

Upvotes: 15

Arthur Ulfeldt
Arthur Ulfeldt

Reputation: 91554

They are different languages with a common syntax that are hosted in different environments.

Upvotes: 6

Related Questions