On Sun, Jul 14, 2013 at 12:49 PM, Benjamin Striegel
<[email protected]> wrote:
> I think Jack's proposal is fine, but as Bennie notes I think it's still
> worth discussing whether C#-style formatting would be a better fit for us
> than C-style formatting.
>
>> I'm a fan of sticking with the fmt! style
>
> Patrick mentions that fmt! currently requires a heap allocation to work, is
> this a fundamental limitation of separating formatting from printing?
> Whatever the final interface ends up as, I want to make sure that the "nice
> and easy" way of printing a string to the screen isn't a potential
> performance hazard.

It's not a fundamental limitation. Formatting and conversion to
something byte/string-like should output to a generic stream type
parameter. Strings and byte vectors can implement the trait needed to
act as one of those generic streams.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to