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
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
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
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