title: Why can't I directly assign to object properties using multiple return values from a method?
body: <p>Based on <a href="https://stackoverflow.com/q/6757539/1075499">this</a> question I've coded the following which throws a compilation time error:</p>
  
  <p><strong>Here is the code:</strong></p>
  
  <pre><code>43. Currency currency = new Currency()
  44. (currency.rate_one, currency.time_one) = getDateAndRate()
  </code></pre>
  
  <p><strong>My method with two return values:</strong></p>
  
  <pre><code>def getDateAndRate(){
      Date date = new Date()
      double rate = getRate();
      return [rate, date]
  }
  </code></pre>
  
  <p><strong>Error thrown</strong></p>
  
  <pre><code>expecting '}', found ',' @ line 44, column 26.
  (currency.rate_one, currency.time_one) = getDateAndRate()
                    ^
  </code></pre>