Skip to content

Commit d48c817

Browse files
committed
use full word.
1 parent fce8a7e commit d48c817

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

doc/Language/5to6-nutshell.pod6

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ In Perl 6, the curly braces are changed to parentheses.
469469
say keys %($hashref );
470470
say &($subref );
471471
472-
Note that in both Perl 5 and Perl 6, the surrounding curly braces or parens can
472+
Note that in both Perl 5 and Perl 6, the surrounding curly braces or parentheses can
473473
often be omitted, though the omission can reduce readability.
474474
475475
In Perl 5, the arrow operator, C«->» , is used for single access to a
@@ -660,8 +660,8 @@ Mnemonic: x is short and xx is long, so xx is the one used for lists.
660660
@ones = (5) x @ones; # Set all elements to 5
661661
# Perl 6
662662
print '-' x 80; # Unchanged
663-
@ones = 1 xx 80; # Parens no longer needed
664-
@ones = 5 xx @ones; # Parens no longer needed
663+
@ones = 1 xx 80; # Parentheses no longer needed
664+
@ones = 5 xx @ones; # Parentheses no longer needed
665665
666666
667667
=head2 C<..> C<...> Two Dots or Three Dots, Range op or Flipflop op
@@ -687,7 +687,7 @@ In Perl 6, simply extend the curly braces to include the sigil too: C<"{$foo}s"
687687
688688
=head3 C<if> C<elsif> C<else> C<unless>
689689
690-
Mostly unchanged; parens around the conditions are now optional, but if
690+
Mostly unchanged; parentheses around the conditions are now optional, but if
691691
used, must not immediately follow the keyword, or it will be taken as a function
692692
call instead. Binding the conditional expression to a variable is also a little different:
693693
@@ -737,7 +737,7 @@ See also the warnings on the smart-match op above.
737737
738738
=head3 C<while> C<until>
739739
740-
Mostly unchanged; parens around the conditions are now optional, but if
740+
Mostly unchanged; parentheses around the conditions are now optional, but if
741741
used, must not immediately follow the keyword, or it will be taken as a function
742742
call instead. Binding the conditional expression to a variable is also a little different:
743743
@@ -786,18 +786,18 @@ Note first this common misunderstanding about the C<for> and C<foreach>
786786
keywords. Many programmers think that they distinguish between the C-style
787787
three-expression form and the list-iterator form; they do not! In fact,
788788
the keywords are interchangeable; the Perl 5 compiler looks for the
789-
semi-colons within the parens to determine which type of loop to parse.
789+
semi-colons within the parentheses to determine which type of loop to parse.
790790
791791
The C-style three-factor form now uses the C<loop> keyword, and is
792-
otherwise unchanged. The parens *are* still required.
792+
otherwise unchanged. The parentheses *are* still required.
793793
794794
for ( my $i = 1; $i <= 10; $i++ ) { ... } # Perl 5
795795
loop ( my $i = 1; $i <= 10; $i++ ) { ... } # Perl 6
796796
797797
798798
The loop-iterator form of C<for> or C<foreach> is named C<for> in Perl 6.
799799
C<foreach> is no longer a keyword.
800-
Parens are optional.
800+
Parentheses are optional.
801801
802802
The iteration variable, if any, has been moved from before the list, to
803803
after the list and an added arrow operator.

doc/Language/faq.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ languages.
184184
Example:
185185
186186
my $foo
187-
say $foo # (Any) note the parens indicate type object
187+
say $foo # (Any) note the parentheses indicate type object
188188
say $foo.^name # Any
189189
190190
(Any) shouldn't be used to check for definedness. In Perl 6, definedness is a

doc/Language/objects.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ say @words.L<join>: '--';
4949
# Abe--Lincoln--said--Fourscore--and--seven--years--ago
5050
5151
Since you have to put a C<:> after the method if you want to pass arguments
52-
without parentheses, a method call without a colon or parens is
52+
without parentheses, a method call without a colon or parentheses is
5353
unambiguously a method call without an argument list:
5454
5555
say 4.log: ; # 1.38629436111989 ( natural logarithm of 4 )

doc/Language/operators.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ The X<grouping operator>.
397397
398398
X<|(),empty list>
399399
An empty group C<()> creates an empty L<List> .
400-
Parens around non-empty expressions simply structure the expression, but
400+
Parentheses around non-empty expressions simply structure the expression, but
401401
not have additional semantics.
402402
403403
In an argument list, putting parenthesis around an argument prevents it from
@@ -508,9 +508,9 @@ C<{ }> postcircumfix operator at compile-time.
508508
=head2 postcircumfix C«( )»
509509
510510
The X<call operator>. Treats the invocant as a L<Callable> and invokes it,
511-
using the expression between the parens as arguments.
511+
using the expression between the parentheses as arguments.
512512
513-
Note that an identifier followed by a pair of parens is always parsed as a
513+
Note that an identifier followed by a pair of parentheses is always parsed as a
514514
subroutine call.
515515
516516
If you want your objects to respond to the call operator, you need to

doc/Language/packages.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ C<::($expr)> where you'd ordinarily put a package or variable name. The
9898
string is allowed to contain additional instances of C<::>, which will be
9999
interpreted as package nesting. You may only interpolate entire names,
100100
since the construct starts with C<::>, and either ends immediately or is
101-
continued with another C<::> outside the parens. Most symbolic references
101+
continued with another C<::> outside the parentheses. Most symbolic references
102102
are done with this notation:
103103
104104
$foo = "Bar";

doc/Language/rb-nutshell.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ can be used instead of scalar values.
554554
555555
=head3 C<while> C<until>
556556
557-
Mostly unchanged; parens around the conditions are optional, but if used, must
557+
Mostly unchanged; parentheses around the conditions are optional, but if used, must
558558
not immediately follow the keyword, or it will be taken as a function call
559559
instead. Binding the conditional expression to a variable is also a little
560560
different:

doc/Language/subscripts.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ The return value and possible side-effect of a subscripting operation can be
396396
controlled using adverbs.
397397
398398
Beware of the relatively loose precedence of operator adverbs, which may
399-
require you to add parens in compound expressions:
399+
require you to add parentheses in compound expressions:
400400
401401
if $foo || %hash<key>:exists { ... } # WRONG, tries to adverb the || op
402402
if $foo || (%hash<key>:exists) { ... } # correct

doc/Language/terms.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ with the exception of C<< 'quoted string' => $value >>.
100100
«a b c»
101101
qw/a b c/
102102
103-
L<List> literals are: the empty pair of parens C<()>, a comma-separated
103+
L<List> literals are: the empty pair of parentheses C<()>, a comma-separated
104104
list, or several quoting constructs.
105105
106106
=head2 term *

doc/Language/variables.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ expression determines the type of assignment:
108108
say $num.perl; # 42 (a Num)
109109
110110
my ( @foo, $bar );
111-
@foo = ($bar) = 42, "str"; # list assignment: uses parens
111+
@foo = ($bar) = 42, "str"; # list assignment: uses parentheses
112112
say @foo.perl; # [42, "str"] (an Array)
113113
say $bar.perl; # $(42, "str") (a List)
114114

doc/Type/Bag.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ the (cumulative) values become the associated integer weights:
6565
Furthermore, you can get a C<Bag> by using bag operators (see next section) on
6666
objects of other types such as L<List>, which will internally call C<.Bag>
6767
on them before performing the operation. Be aware of the tight precedence of
68-
those operators though, which may require you to use parens around arguments:
68+
those operators though, which may require you to use parentheses around arguments:
6969
7070
say (1..5) (+) 4; # bag(1, 2, 3, 4(2), 5)
7171

0 commit comments

Comments
 (0)