4 ms·
You forgot `match` and closures. But in general I think new variables can be created in all contexts where a pattern can be used.
by Thiez 8y ago
You forgot `match` and closures. But in general I think new variables can be created in all contexts where a pattern can be used.
- steveklabnik 8y agoYes, in fact, it's always a pattern. Even let x = 5; is a pattern, just a very simple one!