News for hackers. Stuff that matters.
Re:Named Booleans prevent C++ bugs and save you time by bandika on Saturday February 18, 2023 @04:30AM (#34845442)
The correct rewriting would be:

    bool char_non_space = p_non_null && (*p != ' ');
Re:Named Booleans prevent C++ bugs and save you time by tpoacher on Saturday February 18, 2023 @05:07PM (#34851609)
but then 'char_not_space' is a misleading name, as it could denote the presence of a space due to p being null