[{"data":1,"prerenderedAt":251},["ShallowReactive",2],{"\u002Fcomments-on-perl6-colons":3},{"id":4,"title":5,"body":6,"createdAt":239,"description":195,"draft":240,"extension":241,"image":242,"mastodonThread":242,"meta":243,"navigation":244,"path":245,"seo":246,"stem":247,"tags":248,"updatedAt":249,"__hash__":250},"content\u002FComments on Perl6 Colons.md","Comments_on_Perl6_Colons",{"type":7,"value":8,"toc":234},"minimark",[9,14,18,21,24,27,30,37,47,71,74,77,80,83,86,91,97,100,104,122,126,133,136,138,141,150,153,155,166,169,171,174,177,179,182,185,196,205,207,210,213,215,218,226,228,231],[10,11,13],"h3",{"id":12},"_9-comments","9 Comments.",[15,16,17],"p",{},"Some uses I know of which do not appear to be in your list:",[15,19,20],{},"say :: # Pseudopackage representing null namespace?",[15,22,23],{},"say X::.keys # The package X treated as a hash",[15,25,26],{},"42.Int::Int # Call Int method of Int class",[15,28,29],{},"-> Numeric ::T \\x { say T }(42) # T takes value's type",[15,31,32,33,36],{},"my regex foo { ",[34,35],"my",{}," $var; } # declare vars in regex scope",[15,38,39,40,46],{},"my regex bar { a: b:? c:! :: ::> } # ",[41,42,43],"a",{"href":43,"rel":44},"http:\u002F\u002Fdesign.perl6.org\u002FS05.html#Backtracking_control",[45],"nofollow"," (some of these implemented already, Larry says he plans to do more this year)",[15,48,49,50,53,54,56,57,59,60,64,59,66,68,70],{},"Fwiw you're missing a lot of colon-pair syntax variations too, eg:",[51,52],"br",{},"\nsay (:1day) # day => 1",[51,55],{},"\nsay (:!foo) # foo => False",[51,58],{},"\nmy @foo=1,2; say (:@foo) # foo => ",[61,62,63],"span",{},"1,2",[51,65],{},[61,67,63],{},[51,69],{},"\nsay :16(\"dead\") # 57005",[15,72,73],{},":)",[15,75,76],{},"-- raiph 2016-01-21 05:03 UTC",[78,79],"hr",{},[15,81,82],{},"A quick scan of some docs reminds me of:",[15,84,85],{},"class :: is Int {...}   # :: stands for an anonymous class",[87,88,90],"h1",{"id":89},"alternative-to-foo-passed-on-command-line","alternative to --foo passed on command line:",[15,92,93,94],{},"perl6 -e 'sub MAIN (:$foo) { say $foo }' ",[95,96],"foo",{},[15,98,99],{},"And here's something I didn't already know:",[87,101,103],{"id":102},"binding-pair-in-sig","binding pair in sig:",[15,105,106,107,109,110,112,113,115,116,118,119,121],{},"my $a;",[51,108],{},"\nsub b (",[95,111],{},"($a)! is rw) { $a = 42};",[51,114],{},"\nb(",[95,117],{},"($a));",[51,120],{},"\nsay $a # 42",[87,123,125],{"id":124},"and-then-theres-all-the-specific-uses-of-longnames-like","And then there's all the specific uses of longnames like:",[15,127,128,129],{},"use Foo:from",[130,131,132],"perl5",{},";",[15,134,135],{},"-- raiph 2016-01-21 05:50 UTC",[78,137],{},[15,139,140],{},"Another one:",[15,142,143,144,149],{},"say so \"a\" ~~ \u002F\u003C",[61,145,146],{},[147,148],"alpha",{},">\u002F # Unicode character classes",[15,151,152],{},"-- raiph 2016-01-21 08:27 UTC",[78,154],{},[15,156,157,158,160,161,165],{},"How about the alternative method calling syntax;",[51,159],{},"\n@measurements.map:  { check_accuracy($",[162,163,164],"em",{},");  fail if $"," \u003C 0 }",[15,167,168],{},"-- Marty 2016-03-01 10:44 UTC",[78,170],{},[15,172,173],{},"Greetings Marty -- that last bit is covered as \"Precedence dropper\" in the misc section.",[15,175,176],{},"-- awwaiid 2016-03-06 03:43 UTC",[78,178],{},[15,180,181],{},"The compile-time variable ::?CLASS.",[15,183,184],{},"E.g. the following are equivalent:",[186,187,192],"pre",{"className":188,"code":190,"language":191},[189],"language-text","class TreeNode { has TreeNode @children; }\nclass TreeNode { has ::?CLASS @children; }\n","text",[193,194,190],"code",{"__ignoreMap":195},"",[15,197,198,199,204],{},"-- ",[41,200,203],{"href":201,"rel":202},"http:\u002F\u002Fpostcircumfix.com",[45],"smls"," 2016-08-26 08:30 UTC",[78,206],{},[15,208,209],{},"That is a bizzaro variable.",[15,211,212],{},"-- awwaiid 2016-09-05 00:45 UTC",[78,214],{},[15,216,217],{},"Considering you can create your own slangs that mutate the language grammar... I'd say the number of colon uses is infinite.",[15,219,198,220,225],{},[41,221,224],{"href":222,"rel":223},"https:\u002F\u002Frakudo.party",[45],"Zoffix"," 2017-07-22 14:39 UTC",[78,227],{},[15,229,230],{},"Zoffix -- I think that is cheating a bit. I guess I'm looking more at the \"core\" language, assuming there is such a thing :)",[15,232,233],{},"-- awwaiid 2017-07-22 15:37 UTC",{"title":195,"searchDepth":235,"depth":235,"links":236},2,[237],{"id":12,"depth":238,"text":13},3,"2016-01-21T00:03-05:00",false,"md",null,{},true,"\u002Fcomments-on-perl6-colons",{"title":5,"description":195},"Comments on Perl6 Colons",[],"2017-07-22T11:37-04:00","JIk_xiXXFSWBiya1jpLywgKhnTaHn-h2jjEOQ5-F05s",1778988310662]