[rust-dev] Renamed print/println

2013-07-15 Thread John Mija
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. _

Re: [rust-dev] Renamed print/println

2013-07-15 Thread Steven Ashley
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

Re: [rust-dev] Renamed print/println

2013-07-15 Thread Brendan Zabarauskas
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

Re: [rust-dev] Renamed print/println

2013-07-15 Thread Corey Richardson
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

Re: [rust-dev] Renamed print/println

2013-07-15 Thread Brendan Zabarauskas
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