Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

> Scala

Note about Scala's string interpolation. They can be used as pattern match targets.

  val s"${a} + ${b}" = "1 + 2";
  println(a) // 1
  println(b) // 2


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: