Why is println! a macro in Rust?
Macro vs Function?
A macro can be thought of as code that generates more code at compile time.
So, if you were to use macro's instead of functions in your code, you would end up getting a comparatively big executable in the end.
An easy, but mildly...
usethesource.hashnode.dev2 min read
Carlos Armando Marcano Vargas
Backend developer
Really great. Happy to see Rust content.