On 6/14/12 4:01 PM, Graydon Hoare wrote:
I actually think if you're going to go down that road you want * to be
unsafe as it is now, and ^ to be your region pointer. That has both more
precedent in other languages and, looking at the above examples, is a
bit less visually noisy.
Bonus intuitions: * evokes C, which is what it's used for, and region
pointers always point "up" the stack to a root pinned in an earlier
frame :)
Well, I'm concerned that Rust code will be littered with ^ everywhere,
which doesn't look like a pointer to most programmers. It'd be nice if,
when a programmer looks at a glance at typical Rust code, the meaning of
the pointer sigil were obvious. ^ will be significantly less common.
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev