Skip to content

Commit ccdf7c7

Browse files
authored
.? is called safe call operator
As per https://en.wikipedia.org/wiki/Safe_navigation_operator
1 parent 0ba7d40 commit ccdf7c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/operators.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ Technically this is not an operator, but syntax special-cased in the compiler.
538538
X«|postfix .?»
539539
=head2 postfix C«.?»
540540
541-
X<Potential method call>s. C<$invocant.?method> calls method C<method> on
541+
X<Safe call operator>. C<$invocant.?method> calls method C<method> on
542542
C<$invocant> if it has a method of such name. Otherwise it returns L<Nil>.
543543
544544
Technically this is not an operator, but syntax special-cased in the compiler.

0 commit comments

Comments
 (0)