There was a whole thread about the need for once-stack-closures. They are really vital for simple programming with higher-order functions such as these. I'm not optimistic about them being added though :-(
On Sat, Dec 7, 2013 at 8:15 AM, Brendan Zabarauskas <[email protected]>wrote: > > On 7 Dec 2013, at 10:47 am, Simon Sapin <[email protected]> wrote: > > > This is why we have methods like .map() and .and_then() > > I like using these higher order functions, but I run into lots of issues > with moved values because we don’t have once functions. I end up having to > use matches, which are awfully verbose for simple things. :( > > ~Brendan > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
