iyi

Prelude, 0.18.0

Panicked

What a caught panic answers as — III.1.4's "catchable at task boundaries", made literal: reading a panicked task's value delivers this instead of a re-raise, and III.1.3's machinery (case, !, .or) handles it like any other failure. A panic nobody reads still re-raises at the join: observed bugs are values, unobserved bugs are loud.

In the prelude: every iyi program has it, with no import.

Panickedstruct

Panickediyi doc Panicked
struct Panicked

  def message : String

  def new(text : String)

  def text : String
end