Hacker News new | ask | show | jobs
by curlyquote 4306 days ago
Conditionals without braces? Have we learned nothing from heartbleed?
1 comments

Ouch! Of course I know of Heartbleed, but I didn't stick around for the postmortem... Was that really what caused it? I use conditionals without braces for one-liners frequently, and this one comment is making me reconsider
That was the apple ssl problem. But yes conditionals are far safer with braces then without.
I have noticed that more often than not, eventually my braceless conditionals turn into conditionals