> I've been working on a proposal to unify Rust's closure type with
> traits. The idea is based on C++ function objects, which allow any
> object which implements the function call operator to be callable.

This kind of stuff is one of my favorite things from Clojure. Having
maps, sets, vectors, keywords, etc all implement IFn makes many things
really nice. I don't know if all those conveniences would survive in
rust, but if we could get a few of them, it would be quite nice.

jack.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to