title: Returning from method inside a @synchronized block
body: <p>I'd just like to know if it's advised to <code>return</code> from a method within a <code>@synchronized</code> block? For example:</p>
  
  <pre><code>- (id)test {
     @synchronized(self) {
        if (a) return @"A";
        else return @"B";
     }
  }
  </code></pre>
  
  <p>As opposed to:</p>
  
  <pre><code>- (id)test {
     NSString *value;
     @synchronized(self) {
        if (a) value = @"A";
        else value = @"B";
     }
     return value;
  }
  </code></pre>
  
  <p>This sample is rather simplistic, but sometimes in a complex method it would make things simpler to be able to return from within a <code>@synchronized</code> block.</p>