Or bitwise not could be turned into a keyword or intrinsic function. We did that with felix, with "bnot", "bor", and "band" since those functions aren't used that often.
On Fri, Jun 10, 2011 at 9:12 AM, David Herman <[email protected]> wrote: > Since unlike C/C++ we have a distinct bool type, would it be possible to > overload ! so that on numeric types it means bitwise not? This would free up > ~ to use for unique pointers. > > Dave > > On Jun 9, 2011, at 10:57 PM, Marijn Haverbeke wrote: > >> Unless we're committed to stay as close to C as possible, I'd move >> bitwise not (which is rather rare) to something else ('~~' maybe) and >> use ~ for unique pointers. It's important that we'll use something >> simple for uniques, as they are expected to be all over the place. >> _______________________________________________ >> 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 > _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
