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

Reply via email to