I appreciate the ingenuity, but this is a lot more complex and hard to wrap my head around than “standard,” three-test implementations.
I always love making a program or script smaller and just being clever, and I keep up with things like the IOCCC, but usually, I don’t see the benefit in the real world of being “clever” when something needs to be maintained. Even by myself, because given a long enough time without touching it I’ll forget how it works, too.
Given that fizzbuzz is generally thought of as a question for interviewers to test thought processes and practices around general programming, and not actually something useful besides “food for thought,” I would personally appreciate something clear and concise over something like this, which isn’t really clear about how it works unless you really take a close look at the code.
I’ll grant you the first one is a bit tricky, but what about the second implementation that was posted? Is that one too clever as well? And given that both work, which would be easier to modify if say, multiples of 7 were to print out “Quxx”?