On Sun, Jul 14, 2013 at 03:51:25PM +1000, Brendan Zabarauskas wrote: > I'm a fan of sticking with the fmt! style - it separates the data > from the representation as opposed to mixing the two. But maybe I'm > just an old fuddy-duddy.
+1 for format strings, though I'm not wedded to the precise C conventions. I particularly dislike intermixing expressions and the string. I often have things like this: debug!(fmt!("Entering %s: foo=%s bar=%s", some_long_expression.id.to_str(), foo.repr(tcx, ...), ...)); When expressions get long, it's very ugly for them to be mixed in with the string. Niko _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev