Panicked
In the prelude: every iyi program has it, with no import.
Panickedstruct
struct Panicked
def message : String
def new(text : String)
def text : String
endPanickedIn the prelude: every iyi program has it, with no import.
Panickedstructstruct Panicked
def message : String
def new(text : String)
def text : String
end
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.