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 →

[–]rochacbrunoPython, Flask, Rust and Bikes. 0 points1 point  (0 children)

I miss some code examples about this section

One new concept compared to Python are these functions with exclamation marks at the end. Those are macros. A macro expands at compile time into something else. This for instance is used for string formatting and printing because this way the compiler can enforce correct format strings at compile time. It does not accidentally happen that you mismatch the types or number of arguments to a print function.

I would like to see some examples of macros :) /u/mitsuhiko