Re:Why your first Rust FizzBuzz implementation may not work
by aftbit on Sunday October 12, 2014 @10:04PM
(#8447225)
What's up with the "alternative" form of Python? What about braces, semicolons, and an explicit main() function makes that version worth showing?
[ Parent
| on HN ]
Re:Why your first Rust FizzBuzz implementation may not work
by TillE on Sunday October 12, 2014 @10:11PM
(#8447240)
Well, "from __future__ import braces" is a joke, so applying the transitive property of jokes, I assume this alternative version is a joke as well.
Re:Why your first Rust FizzBuzz implementation may not work
by chrismorgan on Sunday October 12, 2014 @10:31PM
(#8447276)
Indeed it is. And people should certainly try executing `from __future__ import braces` if they’re not familiar with what it is.
As for the main function and `if __name__ == '__main__': main()`, that part is actually generally recommended.