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()

Trackback URI | Comments RSS

Leave a Reply

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.


Warning: Use of undefined constant wp_pagenavi - assumed 'wp_pagenavi' (this will throw an Error in a future version of PHP) in /var/www/vhosts/nslog.com/httpsdocs/wp-content/themes/nslog/single.php on line 48