Skip to content

Commit

Permalink
explaining smartmatch and lol and adding some other term dummies
Browse files Browse the repository at this point in the history
  • Loading branch information
lichtkind committed May 1, 2012
1 parent e411bfa commit ef83e04
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions docs/appendix-g-glossary.txt
Expand Up @@ -231,8 +231,8 @@ out of several [codepoints](#codepoint)
# [I](#nav-top)

<a id="invocant"/>
**invocant** &mdash; *[routine](#routine)* or term that called
the piece of code of issue
**invocant** &mdash;
*[routine](#routine)* or [term](#term) that called the piece of code of issue

<a id="item-context"/>
**scalar context** &mdash;
Expand All @@ -257,10 +257,22 @@ several values, example: (A and B) or C, creat them with

# [L](#nav-top)

<a id="list"/>
**list** &mdash;

<a id="list-contex"/>
**list context** &mdash;
[Array](appendix-a-index.html#Array-type)

<a id="list-flattening"/>
**list flattening** &mdash;

<a id="LOL"/>
**LOL** *(List of List)* &mdash;
special kind of [*list*](#list) that can contain other lists, like:
`[[1,2,3], [4,5,6]]` which is a list with 2 elements,
lol context means these sublists will now [*flattended*](#list-flattening)

<a id="LTM"/>
**LTM** *(longest token matching)* &mdash;
when searching a pattern with alternatives (sub|substr)
Expand Down Expand Up @@ -319,6 +331,12 @@ other logical operations are: [*and*](#and), [*or*](#or), [*xor*](#xor)
programming paradigm (style), that arranges data and functions
that belong together into so called objects

<a id="operand"/>
**operand** &mdash;

<a id="operator"/>
**operator** &mdash;

<a id="or"/>
**or** &mdash;
logical operation that has a the result **True** if at least one of two
Expand Down Expand Up @@ -491,7 +509,13 @@ array parameter that receives all (slurps) all optional

<a id="smartmatch"/>
**smartmatch** &mdash;
*[~~](appendix-a-index.html#smartmatch-op)*
The original Perl 6 *smartmatch* [operator](#operator) looks like this:
*[~~](appendix-a-index.html#smartmatch-op)* and does an universal
"compare this with that" dependend on the [types](#type) of the [operands](#operand).
That can range from simple comparison of two values up to the question if
two [signatures](#signature) are compatible -
all details in [that table](appendix-b-grouped.html##smartmatch).


<a id="string-context"/>
**string context** &mdash;
Expand Down

0 comments on commit ef83e04

Please sign in to comment.