News for hackers. Stuff that matters.
Re:Why your first Rust FizzBuzz implementation may not work by dhon_ on Monday October 13, 2014 @12:09AM (#8447445)
In the contrived Python example, FizzBuzzItem is only called if the result is a number (not in any of the modulo 0 cases) - is that intended? I can see that it works, but it's breaking the analogy for me with the Rust code.
Re:Why your first Rust FizzBuzz implementation may not work by chrismorgan on Monday October 13, 2014 @12:12AM (#8447452)
Whoa, that was indeed a mistake. Sorry about that. Fixed.
Re:Why your first Rust FizzBuzz implementation may not work by dhon_ on Monday October 13, 2014 @12:42AM (#8447511)
Thanks, also is the "try it" link on rust playpen linking to the wrong code?
Re:Why your first Rust FizzBuzz implementation may not work by chrismorgan on Monday October 13, 2014 @12:48AM (#8447525)
No, that’s the code that is supposed to be there. It’s indicating that there is nothing that you can put as the lifetime there.