Re: advantage of clojure over non lisp languages

2010-12-07 Thread Ken Wesson
On Tue, Dec 7, 2010 at 6:57 PM, Alan wrote: > I remember I was very excited about Java 1.5 when it came out, because > of all the syntactic sugar it provided. I was tired of typing > > for (int i = 0; i < foo.length; i++) { >    Bar b = foo[i]; >    // do stuff with b > } > > 1.5 introduced the fo

Re: advantage of clojure over non lisp languages

2010-12-07 Thread Alan
I remember I was very excited about Java 1.5 when it came out, because of all the syntactic sugar it provided. I was tired of typing for (int i = 0; i < foo.length; i++) { Bar b = foo[i]; // do stuff with b } 1.5 introduced the foreach loop syntax, so that I could instead write for (Bar

Re: advantage of clojure over non lisp languages

2010-12-07 Thread Alex Baranosky
There are plenty of things that can be done with macros, that cannot be done in Scala or Java. I can't find an example off hand, but the books: The Joy of Clojure, Clojure in Action, and Programming Clojure have good examples throughout. -- You received this message because you are subscribed to

advantage of clojure over non lisp languages

2010-12-07 Thread SpiderPig
Hi, I was wondering if there are any good examples that show what advantages clojure/lisp has over most other programming languages. I mean a piece of code that couldn't be easily translated into e.g. scala or java. A program that would take much longer to develop in other languages due to the uniq