Posted on Jun 2nd, 2011 in
Ruby,
Scala |
20 comments
Someone came up with a list of 10 one-liner examples that are meant to showcase Scala’s expressiveness. A CoffeeScript version quickly emerged, so I thought I’d publish a Ruby one. I find Ruby’s syntax to be a bit cleaner than Scala’s, but the substance (at least as far as these examples are concerned) is relatively similar.
Multiply each item in a list by 2
(1..10).map { |n| n * 2 }
Sum a list of...
Posted on Aug 7th, 2009 in
Ruby,
Scala |
23 comments
Kenneth McDonald posted the following question about Scala’s future in the Scala mailing list:
I thought it would be interesting to find out people’s predictions for how much of the Java market Scala will eventually penetrate. It’s nice to see Scala doing reasonably well so far, so now’s your chance to make a prediction on the future of Scala:
a) Scala will remain a niche language, competing...