Scala 3, Programming Scala.
None. Hence, an “optional” result, if you will. (This implementation is also now in the book’s code examples.) import scala.util.boundary, boundary.break, boundary.Label object optional: inline def apply[T](inline body: Label[None.type] ?=> T): Option[T] = boundary(Some(body)) extension [T](r: