On Wednesday, 16 January 2013 23:08:41 UTC+8, Thomas wrote: > Hi All, > > Something that came up last night in the blank? thread. What is a good way > to show someone the advantages of Clojure. Something that is simple, not > too complicated, easily understood, shows a (significant) benefit, etc. >
Most important is to keep it really simple if the person hasn't used a Lisp / Clojure before. Getting your head around the prefix syntax is hard enough, without introducing advanced stuff like Java interop. I think the blank? example is actually quite complex as a first example. I'd just do it with examples at a REPL to show off different features, introducing them slowly, with a focus on functions and data. Examples: (+ 1 2 3) (inc 10) [1 2 3] (map inc [1 2 3]) (map (partial + 5) [1 2 3]) (range 10) (filter odd? (range 10)) etc... If after 15 minutes of examples like these you've demonstrated that Clojure is a beautiful, simple functional language and that the Lisp syntax is actually pretty handy, then I think you've done your job..... -- 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