Streem – a new programming language from Matz
1–10 of 199 posts
Re: Streem – a new programming language from Matz
#2Re: Streem – a new programming language from Matz
#3Can anyone else comment on this? Most canonical FizzBuzz programs special case 15, and I don't get it.
Re: Streem – a new programming language from Matz
#4Why 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.
For the record, I have utterly no math background (hardly passed algebra), but I also agree that checking only 3 and 5 is the better solution and is how I've always written FizzBuzz.
Re: Streem – a new programming language from Matz
#5Why 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.
Re: Streem – a new programming language from Matz
#6Re: Streem – a new programming language from Matz
#7That 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
#8Re: Streem – a new programming language from Matz
#9I'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.
To be fair, a spec with tests was reversed out of the ruby implementation[1], so things have improved a bit.
Re: Streem – a new programming language from Matz
#10Why 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.
It's to neatly handle the line break.