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

I was thinking about the fact that whatever you're iterating over has to be copied around throughout the process. Rust can guarantee that eg. deep-copies (clones) of allocated structs will never happen implicitly, if your iterator owns the values being iterated. But in languages where copying can trigger allocations, this could be a problem

I don't actually know whether that applies to Zig though



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

Search: