On Sat, Oct 30, 2010 at 12:09 AM, David Nolen <dnolen.li...@gmail.com>wrote:

> More interesting would be something along the lines of CoffeeScript (like
> ClojureScript) that takes a reasonable subset Clojure and compiles into
> efficient JS, allowing Clojure programmers to send Clojure code to clients.
>

That already exists in Allen Rohner's Scriptjure.
http://github.com/arohner/scriptjure

Scriptjure is very much equivalent to CoffeeScript, though not
Underscore.coffee. Most of my patches to scriptjure originated when I was
porting a CoffeeScript codebase to Scriptjure. The only major features of
CoffeeScript that it doesn't have that I notice are implicit returns and
well indented js output.

Of course Scriptjure is not Clojure on JS. It's just JS with Clojure syntax
and a few nice "compiler" tricks.

Being able to jump out to real Clojure inside your Clojure-looking JS with a
simple (clj (some real clojure code)) comes in really handy when the backend
is also Clojure and you have some data that both the client and server need.

You can also configure Emacs+mozrepl so that if you eval some scriptjure
code in emacs it gets compiled to js and evaled in your web browser.

Cheers,
Scott

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to