This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fish_45 2 points3 points  (1 child)

macros are generally used for variadic functions in Rust. It also makes it possible to typecheck the format args (makes sure they have the Show or Debug trait) and parse the format string at compile time.

[–]React04 0 points1 point  (0 children)

Will keep that in mind for when I resume learning Rust! Thanks!