10

I am not getting the idea of ClojureScript. For example, I am writing a web application, and I need to write some javascript. Should I use ClojureScript which will generate the javascript for me? Looking for some guidance.

thanks

Jeremy
  • 22,188
  • 4
  • 68
  • 81
ruskin
  • 469
  • 9
  • 17
  • You could if you liked. What do you mean, should you? – mqp Jul 21 '11 at 17:39
  • 2
    Take a look at this link. Maybe it will give you an idea. https://github.com/clojure/clojurescript/wiki/Rationale – Jason Down Jul 21 '11 at 18:55
  • It depends... If you do not know Clojure I would not even bother with Clojurescript. Clojurescript is basically client side web development for Clojure developers, nothing else – yazz.com Feb 10 '12 at 06:14

2 Answers2

16

use it if

  • you want to write desktop applications in clojure
  • you want to write your entire webapp in clojure, front and back end
  • you want to write for a JS based mobile platform like palm etc.
  • you are die hard clojure fan... ;)
  • you have some algorithm implemented in clojure that you'd like to leverage on a JS platform. (from stand)
Arthur Ulfeldt
  • 90,827
  • 27
  • 201
  • 284
  • 4
    I'd add: you have some algorithm implemented in clojure that you'd like to leverage on a JS platform. – stand Jul 21 '11 at 20:14
1

I think ClojureScript shines if your application is a JavaScript-based Rich Internet Application. Think of GMail or Google Maps.

On a side note, ClojureScript competes with CoffeeScript.

Chiron
  • 20,081
  • 17
  • 81
  • 133