title: Why can't you create a 1 statement function without curly braces?
body: <p>So, in most programming language, if you are using a loop or an if, you can do it without curly braces if there is only a single statement in it, example:</p>
  
  <pre><code>if (true)
      //Single statement;
  
  for (int i = 0; i &lt; 10; i++)
      //Single Statement
  
  while (true)
      //Single statement
  </code></pre>
  
  <p>However, it doesn't work for functions, example:</p>
  
  <pre><code>void myFunction()
      //Single Statement
  </code></pre>
  
  <p>So, my question, why doesn't it work for functions?</p>