+The value of the conditional expression may be optionally bound to
+a closure parameter:
+    if    testa() -> $a { say $a }
+    elsif testb() -> $b { say $b }
+    else          -> $b { say $b }
I'd prefer it if the result of a test in an if or elsif were usable in all subsequent elsif or else statements in the same if .. elsif .. else clause, so you could do something like

  if testa() -> $a {say "$a  is true"}
  elsif testb() -> $b say {"$a is false and $b is true"}
  else                      say {"Neither $a nor $b is true"}

Joe Gottman

Reply via email to