I second Graydon's remark. While syntactically very nice, customizable operator overloading is the kind of feature that makes it much harder to understand snippets and, in particular, to review patches.
Now, of course, avoiding operator overloading can be a matter of project-specific coding guidelines and/or pragmas rather than something hardwired into the language. Cheers, David On 11/30/11 12:51 AM, Graydon Hoare wrote: > > "Customize" and "predictable" are, in general, opposites. If custom code > might be invoked as part of an operation, the reader has to go read the > custom code to figure out what it does. > > I have the exact same objection to operator overloading and several > other dimensions along which extensibility may be offered. I think too > much extensibility is not a good thing. > > -Graydon > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
