News for hackers. Stuff that matters.
Re:Zig's Curious Multi-Sequence for Loops by brundolf on Monday February 27, 2023 @11:56AM (#34958789)
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

There are no comments on this comment yet.