News for hackers. Stuff that matters.
Re:Fizz Buzz without conditionals or booleans by swisniewski on Tuesday November 18, 2025 @11:06PM (#45975743)
Not sure why this got downvoted.

The technique could be implemented without conditionals, but not in python, and not using iterators.

You could do it in C, and use & and ~ to make the cyclic counters work.

But, like I mentioned, the code in the article is very far from being free of conditionals.

Re:Fizz Buzz without conditionals or booleans by abustamam on Tuesday November 18, 2025 @11:47PM (#45975964)
I didn't down vote, but it does seem like unnecessary pedantry. Maybe it could be better phrased as "without writing any conditionals"