Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
curlyquote
· 12y ago · 0 comments
Conditionals without braces? Have we learned nothing from heartbleed?
Comments
[–]
arenaninja
12y ago
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
[–]
elektronjunge
12y ago
That was the apple ssl problem. But yes conditionals are far safer with braces then without.
[–]
arenaninja
12y ago
I
have
noticed that more often than not, eventually my braceless conditionals turn into conditionals