Comment

Comment by Waterluvian

I get why but I’ll never not see this as a counterintuitive footgun.

Edit: yes I get why. The logic is there. But my brain just can’t help but see the inverse: eg.

    passed = all(test_results)
I hit a case where I actually test nothing and have no results. Did I pass?

Because in my brain I’m always framing things with how a loop can be run zero times. A collection of zero elements is not a case I usually have to manually cover.

Edit again: did all of that confuse you? Because I was completely backwards and wrong. It’s time to clock out for the day.

parent Waterluvian 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton