News for hackers. Stuff that matters.
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.