@@ -17,7 +17,7 @@ Here you can find an overview of different kinds of terms.
17
17
12_300_00
18
18
:16<DEAD_BEEF>
19
19
20
- L < Int > literals consist of digits, and can contain underscores
20
+ L < Int > literals consist of digits and can contain underscores
21
21
between any two digits.
22
22
23
23
To specify a base other than ten, use the colonpair form C << :radix<number> >> .
@@ -27,7 +27,7 @@ To specify a base other than ten, use the colonpair form C<< :radix<number> >>.
27
27
12.34
28
28
1_200.345_678
29
29
30
- L < Rat > (rational numbers) literals contain two integer parts joined by a dot.
30
+ L < Rat > literals (rational numbers) contain two integer parts joined by a dot.
31
31
32
32
Note that trailing dots are not allowed, so you have to write C < 1.0 > instead
33
33
of C < 1. > (this rule is important because there are infix operators starting
@@ -38,7 +38,7 @@ with a dot, for example the C<..> L<Range> operator).
38
38
12.3e-32
39
39
3e8
40
40
41
- L < Num > (floating point numbers) literals consist of L < Rat > or L < Int > literals
41
+ L < Num > literals (floating point numbers) consist of L < Rat > or L < Int > literals
42
42
followed by an C < e > and a (possibly negative) exponent. C < 3e8 > constructs a
43
43
L < Num > with value C < 3 * 10**8 > .
44
44
@@ -50,7 +50,7 @@ L<Num> with value C<3 * 10**8>.
50
50
"\"But I still can be,\" he said."
51
51
q|Other delimters can be used too!|
52
52
53
- String literals are most often created with C < ' > or C < " > , but strings
53
+ String literals are most often created with C < ' > or C < " > , however strings
54
54
are actually a powerful sub-language of Perl 6. See
55
55
L < Quoting Constructs > .
56
56
@@ -79,12 +79,12 @@ These forms produce regex literals. See L<Quoting Constructs>.
79
79
80
80
L < Pair > objects can be created either with C << infix:«=>» >> (which
81
81
auto-quotes the left-hand side if it is an identifier), or with the various
82
- colonpair forms. Those always start with a colon, and then are followed either
83
- by an identifier or the name of an already existing variable (whose name sans
84
- the sigil is used as the key, and value of the variable is used as the value
82
+ colon-pair forms. Those always start with a colon and then are followed either
83
+ by an identifier or the name of an already existing variable (whose name without
84
+ the sigil is used as the key and value of the variable is used as the value
85
85
of the pair).
86
86
87
- In the identifier form a colonpair , the optional value can be any circumfix.
87
+ In the identifier form of a colon-pair , the optional value can be any circumfix.
88
88
If it is left blank, the value is C < Bool::True > . The value of the
89
89
C < :!identifier > form is C < Bool::False > .
90
90
@@ -100,7 +100,7 @@ the exception of C<< 'quoted string' => $value >>.
100
100
qw/a b c/
101
101
102
102
L < Parcel > literals are: the empty pair of parens C < () > , a comma-separated
103
- list, or several quoting constructs
103
+ list, or several quoting constructs.
104
104
105
105
= head2 term *
106
106
@@ -109,12 +109,12 @@ Creates an object of type C<Whatever>. See L<Whatever> documentation for more de
109
109
= head1 Identifier terms
110
110
111
111
There are built-in identifier terms in Perl 6, which are listed below.
112
- In addition one can add new identifier terms with the syntax
112
+ In addition one can add new identifier terms with the syntax:
113
113
114
114
sub term:<fourty-two> { 42 };
115
115
say fourty-two
116
116
117
- or as constants
117
+ or as constants:
118
118
119
119
constant forty-two = 42;
120
120
say fourty-two
@@ -140,14 +140,14 @@ a circle.
140
140
141
141
= head2 term e
142
142
143
- Returns Euler's number
143
+ Returns Euler's number.
144
144
145
145
= head2 term i
146
146
147
147
Returns the imaginary unit (for L < Complex > numbers).
148
148
149
149
= head1 Variables
150
150
151
- Variables are discussed in L < variable language docs |/language/variables > .
151
+ Variables are discussed in the L < variable language docs |/language/variables > .
152
152
153
153
= end pod
0 commit comments