title: Which characters can I omit in Scala?
body: <p>In Scala, why can I omit the dot and brakets in <code>T m 0</code> (instead of <code>T.m(0)</code>) in the following?</p>
  
  <pre><code>scala&gt; object T { def m(i:Int) = 0 == i }
  defined module T
  
  scala&gt; T m 0
  res19: Boolean = true
  </code></pre>
  
  <p>But why can't I omit the brakets in <code>n(0)</code> in the following?</p>
  
  <pre><code>scala&gt; def n(i:Int) = 0 == i
  n: (Int)Boolean
  
  scala&gt; n 0
  &lt;console&gt;:1: error: ';' expected but integer literal found.
         n 0
           ^
  </code></pre>