Skip to content

Commit e7d26b1

Browse files
committed
Minor rephrasing and example compilation fixing
1 parent 2054d3c commit e7d26b1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/Type/Junction.pod6

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,17 @@ Note that the compiler is allowed, but not required, to parallelize
6060
autothreading (and Junction behavior in general), so it is usually an
6161
error to autothread junctions over code with side effects.
6262
63-
It is possible I<future language versions> will include short-circuiting
63+
It is possible that I<future language versions> will include short-circuiting
6464
behaviour in Junctions. For example one or more routine calls (C<a()>, C<b()>,
6565
or C<c()>) in the code below might not get executed at all, if the result of
6666
the conditional has been fully determined from routine calls already performed
67-
(only one truthy return value is required to know the entire Junction is true):
67+
(only one truthy return value is enough to know the entire Junction is true):
6868
69-
if a() | b() | c() {
70-
say "At least one of the routines was called and returned a truthy value"
71-
}
69+
=begin code :preamble<sub a(){}; sub b(){}; sub c(){}>
70+
if a() | b() | c() {
71+
say "At least one of the routines was called and returned a truthy value"
72+
}
73+
=end code
7274
7375
Junctions are meant to be used as matchers in boolean context; introspection
7476
of junctions is not supported. If you feel the urge to introspect a junction,

0 commit comments

Comments
 (0)