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 <[email protected]> wrote:
>Yes.
>
>Patrick
>
>Ziad Hatahet <[email protected]> wrote:
>>On Mon, Nov 18, 2013 at 5:34 PM, Patrick Walton
>><[email protected]>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.

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to