File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -166,12 +166,14 @@ are concerned:
166
166
167
167
Above, we've used prefix C < + > operator on a L < Junction|/type/Junction > to coerce
168
168
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
170
171
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»
173
174
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 > :
175
177
176
178
= for code
177
179
my $j = +any "not a number", "42", "2.1";
You can’t perform that action at this time.
0 commit comments