ignore-error/f ( ... quot: ( ... -- ... x ) check: ( error -- ? ) -- ... x/f )


Vocabulary
continuations

Inputs
quota quotation
checka quotation


Outputs
x/fan object or f


Word description
Like ignore-error, but if a matched exception is thrown f is put on the stack.

Definition


: ignore-error/f
( ... quot: ( ... -- ... x ) check: ( error -- ? ) -- ... x/f )
[ [ dup ] ] dip [ [ drop f ] [ rethrow ] if ] compose
compose recover ; inline