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. On Tue, Dec 31, 2013 at 3:55 PM, Armin Ronacher <[email protected] > wrote: > Hi, > > On 30/12/2013 17:29, Patrick Walton wrote: > >> Is `proc` not sufficient? We could prioritize adding unboxed closures, >> > but since they're backwards compatible as far as I know, I don't see a >> major need to add them before 1.0. >> > Procs can be called once. >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
