Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



None 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.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: