On 13/05/2011 8:41 AM, Graydon Hoare wrote:
On 12/05/2011 5:49 PM, Patrick Walton wrote:
I lean toward (3), and, failing that, (5), but I'm not particularly in
favor of one solution or the other (although I'd prefer not to do (1); I
think _str is universally disliked). Mostly I just wanted to throw some
ideas out there.
On IRC ytterbium shoved me towards another option I'd been mulling over
too but had decided against, but I'll put it up here for completeness.
(6) reserve only one name, the path-root module name 'rust' in each
crate, and bind it to a module provided by the compiler, and import all
identifiers in it by default. Then bind int, float, etc. as rust::int,
rust::float.
I'd be ok with this too, but I think I slightly prefer "reserve one type
name for each literal we can denote" (the proposal I made).
The utility of the "reserve the rust:: namespace" approach is, I guess,
that it provides a place to put intrinsics too. Hmm. Warming to it.
-Graydon
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev