title: Should we remove ; at the end of the implementation in Objective-c
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5678360/semicolon-after-the-method-name-in-objective-c-implementation-file">Semicolon after the method name in Objective-C implementation file</a>  </p>
  </blockquote>
  
  
  
  <p>I noticed that both</p>
  
  <pre><code>- (void)encodeWithCoder:(NSCoder *)aCoder;
  {
  
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>- (void)encodeWithCoder:(NSCoder *)aCoder
  {
  
  }
  </code></pre>
  
  <p>works.</p>
  
  <p>Using ; is kind of awkward though. Why having ; works is beyond me. Wouldn't work in C++</p>
  
  <p>The thing is <code>something;</code> should be equivalent with <code>something{};</code> hence <code>something ;{}</code> should be equivalent with <code>something {};{}</code> which is just wrong.</p>
  
  <p>For example if(true) a=b; is the same with if(true){a=b};</p>