3 ms·
In Rust println!() is a macro and it's just as readable as stdout print commands in other languages, in fact it's simpler than some. Macros can be great if use
by alpaca128 6y ago
In Rust println!() is a macro and it's just as readable as
stdout print commands in other languages, in fact it's simpler
than some.
Macros can be great if used to overcome a syntactical
limitation, in which case they can make the code more readable
and compact. If it introduces barriers to reading the code it's
not a good macro, and maybe unnecessary.