Re:Rust for C++ programmers – part 2: control flow
by gmjosack on Sunday April 20, 2014 @01:59PM
(#7617766)
your comparison isn't fair. you're making an argument against fn/int vs function/integer but the largest difference in the code is between index and n. I prefer the version with a longer variable name despite the length.
also shouldn't the returns be unnecessary here since the conditional is an expression?
also shouldn't the returns be unnecessary here since the conditional is an expression?