P
Size: a a a
P
P
P
AD
S
P
S
S
P
S
S
S
function -returns: Nothing
'try (block that can fail:
closure () -returns: iso Result with [Success = Nothing, Error = dyn Exception])
catch (error handling block: closure (error: dyn iso Exception) -returns: Nothing)
else (do things: closure () -returns: Nothing = {})'
{
match (block that can fail ()) {
when ($ .== (.failure)) do {
error hadnling block (error=error)
}
when ($ .== (.success)) do {
do things ()
}
} else {
do things ()
}
}
try {
var smart femenist =
try (Femenist . make random instance)
else { throw ("Obvious failure") }
} catch {
match error {
when ($ .== ("Obvious failure")) do {
put on screen ("Did you expect different outcome?")
}
} else {}
} else {
//do nothing otherwise
}
P
function -returns: Nothing
'try (block that can fail:
closure () -returns: iso Result with [Success = Nothing, Error = dyn Exception])
catch (error handling block: closure (error: dyn iso Exception) -returns: Nothing)
else (do things: closure () -returns: Nothing = {})'
{
match (block that can fail ()) {
when ($ .== (.failure)) do {
error hadnling block (error=error)
}
when ($ .== (.success)) do {
do things ()
}
} else {
do things ()
}
}
try {
var smart femenist =
try (Femenist . make random instance)
else { throw ("Obvious failure") }
} catch {
match error {
when ($ .== ("Obvious failure")) do {
put on screen ("Did you expect different outcome?")
}
} else {}
} else {
//do nothing otherwise
}
P
P
S
P