4 ms·
> i would like laziness in this situation to be described by a keyword please, so that i don't have a whole language feature being slower by premature optimisat
by masklinn 12y ago
> i would like laziness in this situation to be described by a keyword please, so that i don't have a whole language feature being slower by premature optimisation I don't get a say in... :)
Rust uses the exact same external iterator pattern[0] yet is competitive with[1] a C-style for loop[2]
[0] http://doc.rust-lang.org/std/iter/ http://doc.rust-lang.org/std/iter/
[1] up to and including inlining and full unrolling
[2] http://www.reddit.com/r/rust/comments/2957fg/can_i_request_a_c_style_for_loop/ http://www.reddit.com/r/rust/comments/2957fg/can_i_request_a...