News for hackers. Stuff that matters.
Re:Push ifs up and fors down by quickthrower2 on Wednesday November 15, 2023 @09:51PM (#38285376)
I think there is a spirit to this. I.e. is it an "if" in spirit.

Preconditions are not really branches. They are usually `if (bad) throw;` type of thing. They could be replaced with `assert(!bad);`.

A branch would be a function like add_todo_or_calendaritem(is_todo: bool, ...) which would need to branch on is_todo.

There are no comments on this comment yet.