3 ms·
> if (foo = bar) { blah(); } I'm happy with that. In fact I usually do that to avoid schoolboy errors when expanding to multiple statements later. It doesn't a
by dspillett 4y ago
> if (foo = bar) { blah(); }
I'm happy with that. In fact I usually do that to avoid schoolboy errors when expanding to multiple statements later. It doesn't add much (a few characters, not three lines) and allows for lining up parts (ala my point 1) when there are a couple or more of lines doing very similar (but not so much so they can be usefully reduced to a function/macro).