News for hackers. Stuff that matters.
Re:Push ifs up and fors down by jstanley on Thursday November 16, 2023 @06:37AM (#38288328)
I tend to prefer a style more like:

    if (!...) return 0;

    ...
Because otherwise you can end up with lots of nested conditions which are very confusing to follow, even though they boil down to "do the thing if these are true, otherwise don't do the thing".

There are no comments on this comment yet.