From 9a9db6e27ac87774afcae64b36c5a91df23222b0 Mon Sep 17 00:00:00 2001 From: Giftpflanze Date: Fri, 16 Dec 2022 03:09:39 +0000 Subject: [PATCH] continuations: Clarify ignore-error, ignore-error/f, ignore-errors stack effects --- core/continuations/continuations.factor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/continuations/continuations.factor b/core/continuations/continuations.factor index 7cc989e27a..4e1077250c 100644 --- a/core/continuations/continuations.factor +++ b/core/continuations/continuations.factor @@ -149,13 +149,13 @@ callback-error-hook [ [ die rethrow ] ] initialize ] curry ] dip ifcc ; inline -: ignore-errors ( quot -- ) +: ignore-errors ( ... quot: ( ... -- ... ) -- ... ) [ drop ] recover ; inline -: ignore-error ( quot check: ( error -- ? ) -- ) +: ignore-error ( ... quot: ( ... -- ... ) check: ( error -- ? ) -- ... ) '[ dup @ [ drop ] [ rethrow ] if ] recover ; inline -: ignore-error/f ( quot check: ( error -- ? ) -- ) +: ignore-error/f ( ... quot: ( ... -- ... x ) check: ( error -- ? ) -- ... x/f ) '[ dup @ [ drop f ] [ rethrow ] if ] recover ; inline : cleanup ( try cleanup-always cleanup-error -- ) -- 2.34.1