Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: [Perl6] Small 6 discoveries V, Sigils

by Anonymous Monk
on Oct 23, 2017 at 21:32 UTC ( [id://1201932]=note: print w/replies, xml ) Need Help??


in reply to Re: [Perl6] Small 6 discoveries V, Sigils
in thread [Perl6] Small 6 discoveries V, Sigils

I agree with Laurent. And I could do with more sigil, which is more controversial. As much I would like to get rid of the € as a French currency, I would like to have it as sigil for types that are Associative, Positional and Scalar. Many kinds of tree nodes could have that property. In Perl 6, a match acts like it has these properties but can't advertise it with .^roles (see below). $/ would be written as €/. Ironically, a non match is Nil and not Match. And one successful match value cannot be used as an invocant to .^roles :
'a' ~~ /a/; say $/.^roles OUTPUT: «(exit code 1) Unexpected named argument 'transitive' passed

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201932]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-03-28 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found