Is that really why, or are you just  guessing? I'm assuming the real reason is 
that people are used to languages where heap allocation is common and stack 
allocation rare or nonexistant, and don't understand why boxing everything is a 
bad idea. In other words, it's a problem that a proper tutorial should be able 
to help with. I don't think changing syntax is going to make much of a 
difference.

-Kevin

On Nov 18, 2013, at 7:09 PM, Patrick Walton <pwal...@mozilla.com> wrote:

> Keep in mind that, IMHO, the brevity of ~"" is a large reason why people 
> overallocate and make Rust programs slower than they need to be (e.g. your 
> example).
> 
> Patrick
> 
> Patrick Walton <pwal...@mozilla.com> wrote:
> Yes.
> 
> Patrick
> 
> Ziad Hatahet <hata...@gmail.com> wrote:
> On Mon, Nov 18, 2013 at 5:34 PM, Patrick Walton <pcwal...@mozilla.com> wrote:
> No, allocation would be with `new`.
> 
> 
> Would that have to proceed each allocation? For instance, would
> 
> let v = ~[~"one", ~"two", ~"three"];
> 
> turn into
> 
> let v = new Vector(new "one", new "two", new "three");
> 
> ?
> 
> --
> Ziad
> 
> 
> 
> -- 
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev

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

Reply via email to