Perl 6
WITCH colon: Revision 2
^ Mnemonics

"pair", "name", "imposter", "aspect", "ditto", "mirror"
-- used to alias identifiers
-- used to create adverbs and pairs
-- used to control what is visible
-- "everyone wants the colon"<http://perlcabal.org/syn/S01.html#Random_Thoughts>

----

^ Used alone

: is "essentially the sigil for Pair"<http://perlcabal.org/syn/S06.html#Named_arguments> objects
: after a identifier at a statement boundary "creates a label"<http://perlcabal.org/syn/S02.html#Literals> as in common parlance
: after an identifier is an "invocant marker"<http://perlcabal.org/syn/S03.html#Invocant_marker> for indirect object syntax

^ Operators containing this character

:: "sigil and nesting separator"<http://perlcabal.org/syn/S02.html#Names> for packages (and consequently, types)
:() creates a "Signature object"<http://perlcabal.org/syn/S02.html#Names_and_Variables> and is used in "closure parameters"<http://perlcabal.org/syn/S06.html#Closure_parameters>
:= aliases an identifier via "runtime binding"<http://perlcabal.org/syn/S03.html#Item_assignment_precedence>
::= aliases an identifier via "compile time binding"<http://perlcabal.org/syn/S03.html#Item_assignment_precedence>
.: "dotted postfix form"<http://perlcabal.org/syn/S03.html#Method_postfix_precedence> of prefix operator
.:: a "class qualified method call"<http://perlcabal.org/syn/S03.html#Method_postfix_precedence>
=:= "container identity comparitor"<http://perlcabal.org/syn/S03.html#Item_assignment_precedence>

^ When used inside regexes

: can "apply adverbs"<http://perlcabal.org/syn/S05.html#Modifiers> (a.k.a. modifiers, like :i) to individual parts rather than the whole expression
: :? :! :: ::: used like a repeat count performs "backtracking control"<http://perlcabal.org/syn/S05.html#Backtracking_control>
<::> inside extensible metasyntax denotes a "symbolic indirect subrule"<http://perlcabal.org/syn/S05.html#Extensible_metasyntax_(%3C...%3E)>

^ Special Variables

:: _may often be seen after sigils with other special symbols but is only for scoping. Look in this section on the other characters' pages._

^ As an adverb

: introduces an "adverbial Pair constructor"<http://perlcabal.org/syn/S02.html#Literals> which includes also radix in literal numbers.
_If you have a short-form adverb you don't understand, see this section in the page for the character after the colon._

^ Other Uses

: after a parameter name in a Signature "names the invocant"<http://perlcabal.org/syn/S06.html#Invocant_parameters>
: creates "named parameters"<http://perlcabal.org/syn/S06.html#Named_parameters> in Signatures

^ Old, deprecated, or other language uses

? : the ternary operator from perl5 and other languages is ?? !! in perl6
: may not be used as a "regexe delimiter"<http://perlcabal.org/syn/S05.html#Regexes_are_now_first-class_language%2C_not_strings> as allowed in perl5


Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: