title: String interpolation in Scala?
body: <p>I wanted to ask if there is any type of string interpolation in Scala. I have made a search on the subject but 'till now I have found that there is no string interpolation. Is there plans to get implemented in next versions?</p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>String interpolation is going to be in scala 2.10 which you can try out since scala 2.10.RC1 is out (20/10/2012). You can check out this <a href="http://docs.scala-lang.org/sips/pending/string-interpolation.html" rel="nofollow noreferrer">SIP</a> for scala 2.11 which states that interpolated strings in the pattern matcher will be valid syntax. With the new string interpolation you can do something like this:</p>
  
  <pre><code>val age = 28
  val name = "Gerry"
  
  s"My name is $name and I am $age years old"
  res0: String = My name is Gerry and I am 28 years old
  </code></pre>
  
  <p>But try out the <a href="http://docs.scala-lang.org/overviews/core/string-interpolation.html" rel="nofollow noreferrer">documentation</a> on all the interpolators that are available at the moment. Note that you can define your own interpolators! Try <a href="https://stackoverflow.com/questions/11404399/indentation-preserving-string-interpolation-in-scala">this link</a> for more info.</p>