Why do most implementations of FizzBuzz special case % 15? I haven't ever really understood this. Maybe it's just my math-y background, but it always seemed to me you should just check mod 3 and mod 5 without an else between them, concatenating Fizz and Buzz. Can anyone else comment on this? Most canonical FizzBuzz programs special case 15, and I don't get it.
Streem – a new programming language from Matz
11–20 of 199 posts
Re: Streem – a new programming language from Matz
#12I'm not really a programming language expert, but it seems to me that having an implementation being the spec wouldn't be a good idea. If the Streem implementation has a bug, then the bug becomes the authoritative behavior. Any platform specific quirks would also make it difficult to have defined behavior.
Re: Streem – a new programming language from Matz
#13I'm not really a programming language expert, but it seems to me that having an implementation being the spec wouldn't be a good idea. If the Streem implementation has a bug, then the bug becomes the authoritative behavior. Any platform specific quirks would also make it difficult to have defined behavior.
Re: Streem – a new programming language from Matz
#14Re: Streem – a new programming language from Matz
#15 true{TRAIL} return keyword_false;
Well, this will be fun to debugRe: Streem – a new programming language from Matz
#16Re: Streem – a new programming language from Matz
#17Not a fan of the closing braces.
Re: Streem – a new programming language from Matz
#18At the very least, it's going to be amazing to watch a master language designer build a new language from the ground up. That said, I'm incredibly optimistic about a new Matz language. If I was going to guess, the syntax will be much lighter and the semantics will make VM optimization much easier than in Ruby.
Re: Streem – a new programming language from Matz
#19At the very least, it's going to be amazing to watch a master language designer build a new language from the ground up. That said, I'm incredibly optimistic about a new Matz language. If I was going to guess, the syntax will be much lighter and the semantics will make VM optimization much easier than in Ruby.