mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
DOCS: Expand on the restrictions for macros.
This commit is contained in:
parent
5c0df5b538
commit
ab8eb9f101
@ -333,6 +333,7 @@
|
||||
//! #### Macros
|
||||
//!
|
||||
//! Macros look like functions but they are resolved at compile time and configurations don't execute so they never appear in output.
|
||||
//! They can only reference the arguments in their arguments. They can't refer to bindings or other macros defined elsewhere.
|
||||
//! They are useful for constructing tuples of a certain shape or otherwise promoting data reuse. You define a macro with the `macro`
|
||||
//! keyword followed by the arguments in parentheses, a `=>`, and then a tuple.
|
||||
//!
|
||||
|
Loading…
x
Reference in New Issue
Block a user