On 09/06/2011 11:05 PM, Patrick Walton wrote:
On 6/9/11 6:26 PM, Patrick Walton wrote:
I was going to use ~foo to construct a unique pointer to foo, but ~
conflicts with bitwise not. We have to do something. Any ideas?
Dave (I think) suggested ^, which seems reasonable to me. Any objections?
Personally I think I'd go with ~ and just merge boolean and bitwise !,
since in rust we don't auto-convert things to bool, and without
auto-bool conversion they're the same operator (just on different
domains). I doubt anyone would miss bitwise xor either, of course, but
I'd save ^ for some future act of sigil-stealing desperation.
(Also ^ for pointers reminds people of Pascal, which we all know is To
Be Avoided At All Costs :)
-Graydon
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev