Have you ever written code like this:
void f(bool b, long x, long& s) { if (b) s += x; }
My mind instantly goes to { s += b*x }. (Haha yup. And he gets to exactly that at 56:58 in the video.)
Not just C++ -- I've done this kinda thing in Python too (though not committed yet) and it did seem to help a bit:
From the description of this video:
My mind instantly goes to
{ s += b*x }
. (Haha yup. And he gets to exactly that at 56:58 in the video.) Not just C++ -- I've done this kinda thing in Python too (though not committed yet) and it did seem to help a bit:can lose if siteupdate.py line numbers from d56e5a67555922d06730363ca779c0acdc224dac
+=
operator|=
?&=
?&&
and||
with bitwise&
and|
,+
,*
etc.if (lit1 == r->alt_label_hash.end() || lit2 == r->alt_label_hash.end())