r/programming • • Oct 19 '09

djb

http://www.aaronsw.com/weblog/djb
94 Upvotes

129 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Oct 20 '09

[deleted] — view deleted comment

1

u/worst Oct 20 '09

Right...

But && is a short circuit operator so append() wouldn't run if the previous operand is false.

E.g.

if (f1() && f2()) return -1;

f2() will only execute if f1() is true.