Subscribe to
Posts
Comments
NSLog(); Header Image

10.9.2 and block-less ifs

OS X 10.9.2 arrives to fix SSL vulnerability, Mail problems, and more

The SSL thing has been making the rounds lately. It boils down to code that looked like this:

if(something)
    do something;
    do something else;
else ...

…instead of…

if(something)
{
    do something;
    do something else;
}
else ...

I've always hated leaving out the curly brackets… unless maybe you do it like AppleScript:

if myString is equal to "Do It!" then doSomething()

Comments RSS

Leave a Reply


Warning: Undefined variable $user_ID in /var/www/vhosts/nslog.com/httpsdocs/wp-content/themes/nslog/comments.php on line 96

Please abide by the comment policy. Valid HTML includes: <blockquote><p>, <em>, <strong>, <ul>, <ol>, and <a href>. Please use the "Quote Me" functionality to quote comments.