alt.hn

6/28/2026 at 12:55:11 PM

FizzBuzz in Smalltalk

https://donraab.medium.com/fizzbuzz-in-smalltalk-8c6b7cdb6c41

by ingve

6/28/2026 at 2:26:44 PM

The example output is not correct at all. I am not familiar with Smalltalk’s syntax to say the code is wrong but it looks like Fizzbuzz so why is the output wrong? Skimming back over the post I don’t see them acknowledging this either.

How in the world is that output that wrong based on the code?

by kemotep

6/28/2026 at 2:45:08 PM

What is wrong, looking at the first screenshot? I got confused by the line numbers initially, but looks OK to me. Keep in mind it's counting from 0

by sph

6/28/2026 at 3:42:02 PM

Wow I thought the line numbers were the number. That makes way more sense. Clearly need to slow down when I am reading.

by kemotep

6/28/2026 at 4:09:08 PM

Just for reference, in case anyone was wondering, this is what it should be outputting:

  perl -E 'say for map { ( $_ % 3 ? "" : 'fizz' ) . ( $_ % 5 ? "" : 'buzz' ) || $_ } 1..shift' 42

by weare138