Into a recent commit, has been renamed print!()/println!() to
printf!()/printfln!()
https://github.com/mozilla/rust/commit/3b0258916d28a1215acf9a0c78f6760cc67f935c
Why do not have print!(), println!() and printf!()?
If somebody wants a line in printf!(), he can use "\n" character.
_
A possible use case for printfln may be to ensure that a new line is always
written in the case where the format string comes from a .po file and is
translated into many different languages.
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozi
print!()/println!() and printf!()/printfln!() sounds good to me. Adding an
extra 'f' isn't much of a hassle for fmt! functionality.
~Brendan
On 16/07/2013, at 7:25 AM, Steven Ashley wrote:
> A possible use case for printfln may be to ensure that a new line is always
> written in the case wher
On Mon, Jul 15, 2013 at 7:33 PM, Brendan Zabarauskas
wrote:
> print!()/println!() and printf!()/printfln!() sounds good to me. Adding an
> extra 'f' isn't much of a hassle for fmt! functionality.
>
Way I see it is if I can type less than `println(fmt!("%?, foo));`,
I'm happy :) That is basically
Indeed. `println(fmt!("%?, foo));` requires great deal of keyboard gymnastics.
And yes the most common use case will most likely be for debugging, so the
ergonomics should fit with that.
~Brendan
On 16/07/2013, at 9:38 AM, Corey Richardson wrote:
> On Mon, Jul 15, 2013 at 7:33 PM, Brendan Zab