News for hackers. Stuff that matters.
Re:The Path to Rust by bjz_ on Thursday May 26, 2016 @02:18AM (#11775948)
That one looks to be more efficient too - all those `collect`s in the original are a tad concerning...
Re:The Path to Rust by Animats on Thursday May 26, 2016 @02:10PM (#11780202)
Do the "collects" mean that memory is allocated and the whole collection stored temporarily, or is this all iterative generators?

(I thought I knew Rust, but I haven't used it for a year, and its usage has changed a lot even if the core language hasn't.)

Re:The Path to Rust by steveklabnik on Thursday May 26, 2016 @02:46PM (#11780469)
collect will ... collect it all into some kind of data structure, so yeah, that version would be doing a bunch of allocation.