Skip to content

Commit 6aa90da

Browse files
committed
Clarify appearances of 'fat comma' refs #2520
1 parent f13eb68 commit 6aa90da

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/Language/5to6-nutshell.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ a sub that expects a hashref, then the usage is likely identical.
620620
621621
If you were using C«=>» as a convenient shortcut to not have to quote part
622622
of a list, or in passing arguments to a sub that expects a flat list of
623-
KEY, VALUE, KEY, VALUE, then continuing to use C«=>» may break your code.
624-
The easiest workaround is to change the fat comma to a regular comma, and
623+
C<KEY, VALUE, KEY, VALUE>, then continuing to use C«=>» may break your code.
624+
The easiest workaround is to change that I<fat arrow> to a regular comma, and
625625
manually add quotes to its left-hand side. Or, you can change the sub's API
626626
to L<slurp a hash|/type/Signature#Slurpy_(A.K.A._variadic)_parameters>.
627627
A better long-term solution is to change the sub's API to

doc/Language/5to6-perlop.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ creates L<Lists|/type/List>) or separates arguments in function
243243
calls. Also, there is a C<:> variant that turns function calls into
244244
method calls - see L<this page|/language/operators#infix_%3A>.
245245
246-
The C<< => >> operator works similarly to the Perl 5 "fat comma"
247-
behavior in that it allows an unquoted identifier on its left side,
248-
but in Perl 6 constructs Pair objects, rather than just functioning as
249-
a separator. If you are trying to just literally translate a line of
250-
Perl 5 code to Perl 6, it should behave as expected.
246+
The C<< => >> operator, or I<fat arrow>, works similarly to the Perl 5 "fat
247+
comma" in that it allows an unquoted (ordinary) identifier on its left side, but
248+
in Perl 6 constructs Pair objects, rather than just functioning as a separator.
249+
If you are trying to just literally translate a line of Perl 5 code to Perl 6,
250+
it should behave as expected.
251251
252252
=head2 List operators (rightward)
253253

0 commit comments

Comments
 (0)