> use std::rt::io::File;
>
> let mut stream = File::create("test.txt");
> writeln!(&mut stream, "test {}, {}, {aa}", 1, 3.0, aa=2);
>
>
> Which I think looks a lot better than before! I would love to not have
> to write `&mut stream` or have something like `stream.write!(foo, bar,
> baz)`, but I haven't thought much about changing the write! macro.
Are macros possible in traits?
stream.writeln!( "test {}, {}, {aa}", 1, 3.0, aa=2 );
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
