Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove the reference to auto flattening based on sigils
  • Loading branch information
awwaiid committed Jan 11, 2016
1 parent 150795b commit 47424d8
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions doc/Language/variables.pod
Expand Up @@ -10,18 +10,16 @@ I<identifier>.
=head1 Sigils
The sigil serves both as a rough type constraint and as an indicator as to
whether the contents of the variable flatten in list context. See also the
documentation in L<List>.
The sigil serves as a variable indicator and type constraint.
=begin table
Sigil Type constraint Default type Flattens Assignment
===== =============== ============ ======== ==========
$ Mu (no type constraint) Any No item
& L<Callable|/type/Callable> Callable No item
@ Positional Array Yes list
% Associative Hash Yes list
Sigil Type constraint Default type Assignment Examples
===== =============== ============ ========== ========
$ Mu (no type constraint) Any item Int, Str, Array, Hash
@ Positional Array list List, Array, Range, Buf
% Associative Hash list Hash, Map, Pair
& Callable Callable item Sub, Method, Block, Routine
=end table
Expand Down Expand Up @@ -139,15 +137,16 @@ only depends on the C<$>.
Twigil Scope
====== =====
* dynamic
! attribute (class member)
? compile-time variable
. method (not really a variable)
< index into match object (not really a variable)
^ self-declared formal positional parameter
: self-declared formal named parameter
none Based only on declarator
* Dynamic
! Attribute (class member)
? Compile-time variable
. Method (not really a variable)
< Index into match object (not really a variable)
^ Self-declared formal positional parameter
: Self-declared formal named parameter
= Pod variables
~ the sublanguage seen by the parser at this lexical spot
~ The sublanguage seen by the parser at this lexical spot
=end table
Expand Down

0 comments on commit 47424d8

Please sign in to comment.