In Variables§
See primary documentation in context for Twigils
We use the term twigils, a word play with sigil, that indicates it uses two symbols in front of an identifier; the second symbol will be placed between the sigil and the identifier, and it will be related to the scoping of a variable, that is, where that variable is defined and can be changed.
Twigil | Scope |
---|---|
none | Based only on declarator |
* | Dynamic |
? | Compile-time variable |
! | Attribute (class member) |
. | Method (not really a variable) |
< | Index into match object (not really a variable) |
^ | Self-declared formal positional parameter |
: | Self-declared formal named parameter |
= | Pod variables |
~ | The sublanguage seen by the parser at this lexical spot |