~
ErrorsCollection

~

Synthesised documentation from language/variables

From language/variables

See Original text in context

The ~ twigil is for referring to sublanguages (called slangs). The following are useful:

$~MAINthe current main language (e.g., Raku statements)
$~Quotethe current root of quoting language
$~Quasithe current root of quasiquoting language
$~Regexthe current root of regex language
$~Transthe current root of transliteration language
$~P5Regexthe current root of the Perl regex language

You augment these languages in your current lexical scope.

use MONKEY-TYPING;
augment slang Regex {  # derive from $~Regex and then modify $~Regex 
    token backslash:std<\Y> { YY };
}