Handbook
Glossary
ignore-error/f ( ... quot: ( ... -- ... x ) check: ( error -- ? ) -- ... x/f )
Vocabulary
continuations
Inputs
quot
a
quotation
check
a
quotation
Outputs
x/f
an
object
or
f
Word description
Like
ignore-error
, but if a matched exception is thrown
f
is put on the stack.
Definition
USING:
kernel
;
IN:
continuations
:
ignore-error/f
( ... quot: ( ... -- ... x ) check: ( error -- ? ) -- ... x/f )
[
[
dup
]
]
dip
[
[
drop
f
]
[
rethrow
]
if
]
compose
compose
recover
;
inline