Re:Bad programming ideas that only become apparent after years
by alpaca128 on Sunday December 27, 2020 @12:57PM
(#25552821)
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.
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.