Re:Why your first Rust FizzBuzz implementation may not work
by Hello71 on Sunday October 12, 2014 @10:05PM
(#8447230)
and yet people write:
in rust? either this is good, readable code or this is poorly written, unintelligible code. you cannot make the argument that sometimes it is readable and sometimes not based on the presence of braces.
[ Parent
| on HN ]
Re:Why your first Rust FizzBuzz implementation may not work
by dbaupp on Sunday October 12, 2014 @10:17PM
(#8447250)
The comparison is not "readable", it is "idiomatic". (I'm not saying either is unreadable, just pointing out that you're attacking the wrong thing.)
Re:Why your first Rust FizzBuzz implementation may not work
by burntsushi on Sunday October 12, 2014 @10:47PM
(#8447305)
Using `if .. else if .. else` in Rust as an expression is absolutely idiomatic.