News for hackers. Stuff that matters.
Re:Why Rust closures are somewhat hard by imtringued on Wednesday September 12, 2018 @04:22AM (#17966484)
I have no rust experience but this looks like this would crash in C++ or C at runtime. You're taking a reference to a string that will be deleted in the next iteration or when the loop completes. You have to make a copy of the strings if you want to keep the code as is.

There are no comments on this comment yet.