Skip to content

You can have colonpairs in identifiers. What's the justification? #1753

@AlexDaniel

Description

@AlexDaniel

From the docs:

Identifiers can contain colon pairs. The entire colon pair becomes part of the name of the identifier.

Here is a nicer example of that:

my $foo:bar<2> = 5;
say $foo:bar(1+1) # OUTPUT: «5␤»

… but why?

This is probably some material for faq-why (“Why things are the way they are in Perl 6”).

Metadata

Metadata

Assignees

Labels

docsDocumentation issue (primary issue type)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions