> macros are needed for most uses of print functions since you generally want variable number of arguments
In addition to that a plain function wouldn't be able to verify a format string at compile-time. On Fri, Mar 14, 2014 at 5:55 PM, Jack Moffitt <[email protected]> wrote: > A suffix ! means that you are using a macro. In this case there is no > difference, but macros are needed for most uses of print functions > since you generally want variable number of arguments, which can only > be done with macros in rust. > > jack. > > On Fri, Mar 14, 2014 at 3:52 PM, Renato Lenzi <[email protected]> wrote: > > Simple question: > > > > println("hello"); > > > > or > > > > println!("hello!"); > > > > Why (or when) should we use one or the other form?? Differences? > > > > Regards. > > > > _______________________________________________ > > Rust-dev mailing list > > [email protected] > > https://mail.mozilla.org/listinfo/rust-dev > > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
