10.9.2 and block-less ifs
Posted February 27th, 2014 @ 11:38am by Erik J. Barzeski
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()