First, I like this a lot. I think applying it to operators as well is
definitely a good thing. I don't feel strongly about these closures
needing to copy the bound values. If you consider them a syntax for
currying, one would expect them to copy, but you could also look at
them as a shorthand for block/lambda syntax, in which case not copying
makes perfect sense. The difference might be moot, actually, since fn@
will copy anyway, and blocks don't escape the call that uses them
mutation of the closed over variables will rarely be an issue.

Best,
Marijn
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to