On 11/2/25 3:31 PM, ToddAndMargo via perl6-users wrote:
Hi All,

In the following:

     my Proc $p = run( |@args, :err, :out );

What are the values with the ":" in front of them
officially called?   I take it "thingies with the
colon in front of them" does not cut it.

Many thanks,
-T


search.brave.com's AI to the rescue.  Is this correct?
Sounds to me somewhat like a hash.


https://search.brave.com/search?q=raku+what+values+with+a+colon+in+front+of+them+called%3F&spellcheck=0&source=alteredQuery&summary=1&conversation=e2eb9c9060b8b4e26cf857

In Raku, values with a colon in front of them are known as
colon-pairs. These are used to create Pair objects and are
often employed as named arguments in function calls.
The colon-pair syntax can take various forms, such as
:identifier which creates a Pair with the key being the
identifier and the value being Bool::True, or :!identifier
which creates a Pair with the value being Bool::False. T
hey can also be used with a value, like :key(value), which
is equivalent to key => value

Reply via email to