News for hackers. Stuff that matters.
Re:Named Booleans prevent C++ bugs and save you time by maccard on Saturday February 18, 2023 @01:37PM (#34849651)
It's the same idea, that the && short circuits.

    bool dirty = ...;
    bool success = doExpensiveCalculation(...);
vs

    if (dirty && doExpensiveCalculation)
    {

There are no comments on this comment yet.