On Mon Dec 5 14:27:18 2011, Marijn Haverbeke wrote: > If bind is staying (there was talk of removing it in favour of lambda > at some point), I think we can do without lambda. But the concept of > shared closures (which is what bind creates) would still be there. > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev
What would be removed exactly? I strongly believe that we need a form of closures, e.g. for registering event callback, whether to a GUI, or for network or system events. Now, of course, as long as we have some ability to pair a data structure and a function pointer, and a standard way to represent functions expecting this kind of data structure, we can always fallback to manual closure conversion, at the expense of some readability. I wonder, what exactly would be gained by removing lambdas? Cheers, David
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
