<slightly off topic>
I saw this code fragment (which calculates Pascal's triangle), which to my eyes 
is very elegant, self-descriptive and demonstrates the power of functional 
programming:

(def pascal 
  (iterate #(concat [1] 
                    (map + % (rest %)) 
                    [1]) 
           [1]))

(from http://rosettacode.org/wiki/Pascal's_triangle#Clojure).

A few well defined abstractions (sequences, map/reduce and lazyness), a small 
set of syntax, and viewing the world as a set of data transformations - 
priceless.
</slightly off topic>

On Monday, 12 January 2015 17:45:13 UTC, debugging data  wrote:
> Vanilla Javascript has generators which allow for CSP [1], macro support [2], 
> and immutable collections [3]. What are the advantages of using Clojurescript 
> compared to Javascript?
> 
> ---
> [1] https://github.com/ubolonton/js-csp
> [2] https://github.com/mozilla/sweet.js
> [3] https://github.com/swannodette/mori

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to