> (2) All named functions have type "@fn". They are reference counted. They
> can close over outer variables, but only those on the heap (i.e. only over
> boxes).

Would it be a problem to also allow them to close over copyable
locals, and simply copy them? That seems like it'd be very convenient.
(Though the difference between closing by-value and by-reference will
occasionally confuse a newcomer.)
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to