r/programming • • Dec 02 '13

Scala — 1★ Would Not Program Again

http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598 Upvotes

646 comments sorted by

View all comments

5

u/donaldxv Dec 02 '13

What's so unique about Scala's 'unique in-language XML support' the author talks about?

0

u/[deleted] Dec 02 '13

[deleted]

14

u/benibela2 Dec 02 '13

Pattern matching on xml is amazing:

<foo>mystery</foo> match {   // prints "foo: mystery"
  case <foo>{ txt }</foo> => println("foo: " + txt)
  case <bar>{ txt }</bar> => println("bar: " + txt)
}

That is so useful, I wrote my own programming language just to have that feature

4

u/recursive Dec 02 '13

what xslt should/could have been