Really cool language. I was just getting into professional development when Java took off and I get the same feeling about Scala as I did with Java in '96. With Java being Oracle's property I can really see Scala taking off as its successor eventually.
Anyone else using it?
qsort in Scala example:
Not everything is that scary looking as you can choose the degree of functional programming you implement (or don't use functional programming at all).
Anyone else using it?
qsort in Scala example:
Code:
def qsort: List[Int] => List[Int] = {
case Nil => Nil
case pivot :: tail =>
val (smaller, rest) = tail.partition(_ < pivot)
qsort(smaller) ::: pivot :: qsort(rest)
}
Not everything is that scary looking as you can choose the degree of functional programming you implement (or don't use functional programming at all).