News for hackers. Stuff that matters.
Re:Economies of Scala by JPKab on Thursday April 18, 2013 @08:54AM (#5570294)
Just curious: As someone who is teaching himself Clojure at the moment, what are the advantages of Scala over Clojure?
Re:Economies of Scala by mercurial on Thursday April 18, 2013 @10:37AM (#5570811)
The type system. Performance from benchmarks appears to be better. Also, I suppose that interaction with Java code is more natural, since Scala is a weird mix of object-oriented and functional languages.

On the other hand, the compiler is extraordinarily slow.

Re:Economies of Scala by voidlogic on Thursday April 18, 2013 @10:07AM (#5570646)
All the usual benchmark disclaimers apply, but Scala appears to compare pretty favourably in the Programming Language Shootout:

http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

Generally Scala appears to use less time, less memory and less code. I have not ever used either so I cannot anecdotally confirm this.

Re:Economies of Scala by terhechte on Thursday April 18, 2013 @09:48AM (#5570547)
The way it combines functional programming with object oriented programming. This kinda gives you the best of both worlds (others may refer to it as 'frankensteinian' though).
Re:Economies of Scala by candybar on Thursday April 18, 2013 @12:03PM (#5571341)
People have mentioned type system, performance and closer semantics equivalence with Java, but the real advantage in the wild is that Clojure's syntax (or lack thereof) is alienating to most people.
Re:Economies of Scala by rz2k on Thursday April 18, 2013 @12:41PM (#5571581)
One advantage is the Coursera class being taught by Martin Odersky[1] right now.

[1] https://www.coursera.org/course/progfun

(Though I suppose that is like saying you should only look for your lost keys under a street lamp)

Re:Economies of Scala by kasey_junk on Thursday April 18, 2013 @09:22AM (#5570412)
The type system.
Re:Economies of Scala by jshen on Thursday April 18, 2013 @09:26AM (#5570428)
He asked for advantages ;)
Re:Economies of Scala by octo_t on Thursday April 18, 2013 @09:36AM (#5570471)
The type system.
Re:Economies of Scala by willismichael on Thursday April 18, 2013 @11:06AM (#5571006)
"I’m not against types, but I don’t know of any type systems that aren’t a complete pain, so I still like dynamic typing." -Alan Kay
Re:Economies of Scala by gtani on Thursday April 18, 2013 @12:20PM (#5571447)