On Tue, Dec 31, 2013 at 9:15 AM, Oren Ben-Kiki <[email protected]> wrote: > Not to re-ignite the thread about this, but one way `proc`s aren't > sufficient because they are send-able (that is, allocated on the heap). Rust > lacks a call-once stack-allocated closure types, which are immensely useful > for manipulating container elements, creating DSL-ish syntax, etc. > > That's separate from the `decltype` issue, though.
Closures don't need to be heap-allocated to be `Send`. An unboxed closure with only `Send` captures would be `Send` itself too. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
