4 ms·
Aside from your specific point (which I liked), isn't there a kind of tension here in a systems language? For loops are almost always going to explicitly show
by hammerandtongs 12y ago
Aside from your specific point (which I liked), isn't there a kind of tension here in a systems language?
For loops are almost always going to explicitly show their allocations whereas the functional version has allocations that are not nearly as obvious.
- pcwalton 12y agoNone of the iterators in the Rust core library allocate. (In fact, they can't, since the Rust core library has no allocation—it's the building block for liballoc.)