News for hackers. Stuff that matters.
Re:Push ifs up and fors down by cratermoon on Wednesday November 15, 2023 @09:29PM (#38285250)
Oh no, hard disagree. The match implementation is far easier to reason about. I can see at a glance that if both condition_a and condition_b are true, call fn_a(). For the nested if version I have to trace each expression by hand.
Re:Push ifs up and fors down by Izkata on Wednesday November 15, 2023 @11:25PM (#38285790)
They said "isn't", not "is". Double negative. You two agree.
Re:Push ifs up and fors down by cratermoon on Thursday November 16, 2023 @08:18PM (#38298020)
Ugh. I missed that. No wonder my grade school teachers taught us "don't use no double negatives".