title: Scala: Why is it necessary to assign values to a var/val during declaration
body: <p>Unless I've been doing it wrong. It doesn't seem like we can do things like:</p>
  
  <pre><code>var x;
  x = 1;
  </code></pre>
  
  <p>in Scala, but rather you have to declare and assign a value to it. Are there any reasons for why this is the case?</p>