On 2020-08-26 17:48, Tom Browder wrote:
On Wed, Aug 26, 2020 at 07:31 Marcel Timmerman <mt1...@gmail.com <mailto:mt1...@gmail.com>> wrote:

    I was experimenting with extended identifiers and found that it is

    not possible to use it in named attributes. E.g.

    > sub a (:$x:y) { say $x:y; }

Are you sure that is supposed to work without some kind of () or <> like a module identifier? But a doc note would be helpful.

Best regards,

-Tom
Hi Tom,

One example from the doc is: WOW:That'sAwesome, so yes, I believe that should be possible. Also I've already used this in Xml::Actions where function names can be named like abc:def:start(). A small REPL test shows also that a simple assignment works on these type of variables;

my $abc:def = 10;
10
say $abc:def;
10

Regards,
Marcel

Reply via email to