Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 829 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 829 Bytes

If you like what I do, consider supporting my work via donation

JavaScript to ClojureScript translator

This tool tries to translate as much JavaScript code into ClojureScript as it can. Keep in mind that it might fail or the result will be non-idiomatic Clojure code due to substantial differences between languages.

e.g. Clojure explicitly distincts global and local vars, but JavaScript does not

(def x 1) ;; global
(let [x 2] ;; local
  (/ x 2))

Clojure's data structures are immutable by defalt

(let [x {}]
  [(assoc x :y 1) x])
  ;; [{:y 1} {}]

Use for educational purpose.

How to contribute

If something is not translated properly, file an issue