Ok, very interesting. thk you all

On Sat, Mar 15, 2014 at 1:09 AM, Benjamin Striegel
<ben.strie...@gmail.com>wrote:

> > 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 <j...@metajack.im> 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 <rex...@gmail.com> 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
>> > Rust-dev@mozilla.org
>> > https://mail.mozilla.org/listinfo/rust-dev
>> >
>> _______________________________________________
>> Rust-dev mailing list
>> Rust-dev@mozilla.org
>> https://mail.mozilla.org/listinfo/rust-dev
>>
>
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
>
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to