Skip to content

Commit e68c068

Browse files
committed
Change wording, refs #3030
1 parent b592d12 commit e68c068

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/Type/Junction.pod6

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,14 @@ are concerned:
166166
167167
Above, we've used prefix C<+> operator on a L<Junction|/type/Junction> to coerce
168168
the strings inside of it to L<Numeric|/type/Numeric>. Since the operator returns
169-
a L<Failure|/type/Failure> when L<Str|/type/Str> that doesn't contain a number
169+
a L<Failure|/type/Failure> when a L<Str|/type/Str> that doesn't
170+
contain a number
170171
gets coerced to C<Numeric>, one of the elements in the C<Junction> is a
171-
C<Failure>, but same C<Failure> rules as normal apply and the C<Failure> doesn't
172-
explode just because it's in a C<Junction>, and we can L«C<.grep>|/routine/grep»
172+
C<Failure>. Failures do not turn into exceptions until they are used or sunk,
173+
and we can L«C<.grep>|/routine/grep»
173174
it out. The exception I<will> be thrown, if you try to use the C<Failure> as a
174-
value—just like were this C<Failure> on its own and not part of the C<Junction>:
175+
value—just like as if this C<Failure> were on its own and not part of the
176+
C<Junction>:
175177
176178
=for code
177179
my $j = +any "not a number", "42", "2.1";

0 commit comments

Comments
 (0)