title: Scala String Interpolation in println - Accessing elements using dot notation
body: <p>I have a <code>user</code> object with a few properties that I can access using dot notation.</p>
  
  <p>For example, <code>user.fullName</code> outputs a String like <code>Firstname Lastname</code>.</p>
  
  <p>How do I access these properties within a <code>println</code> statement that uses string interpolation?</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>println(s"user's full name is $user.fullName")
  </code></pre>
  
  <p>However, it doesn't seem to work with dot notation and only parses the entire <code>$user</code> object, interpreting the remaining <code>fullName</code> section as a string rather than a property. This incorrectly outputs:</p>
  
  <blockquote>
    <p>>> user's full name is User(...).fullName</p>
  </blockquote>
  
  <p>The following is what I'm after:</p>
  
  <blockquote>
    <p>>> user's full name is Firstname Lastname</p>
  </blockquote>
  
  <p>Help appreciated!</p>