Scala 2.9.2 Simple string Interpolation Throwing Error
read-eval-print-loop, scala
Solution
String interpolation is not available in 2.9.2. It was coined in 2.10.0.
Problem
I'm trying to learn Scala and both IDE and REPL are complaining about string interpolation: ``` scala> val name = "World" name: java.lang.String = World scala> val message = s"Hello $name" <console>:1: error: ';' expected but string literal found. val message = s"Hello $name" ^ ``` What is the problem?