On 12/01/2013 02:51 AM, Florian Zeitz wrote:
If I may chime in here.
I agree with Kevin that the different semantics of `new` are more likely
to create confusion, than alleviate it.

Personally I would suggest calling this operator `box`, since it "boxes"
its argument into a newly allocated memory box.

After all, these are different semantics from C++'s `new` (and also Go's
`make` AFAICT), therefore, presuming that a sigil is not a sufficient
indicator of a non-stack allocation, using an unprecedented keyword
seems the way to go to me.

+++ to all 3 points

Denis
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to