Last active
September 27, 2018 21:16
-
-
Save philnguyen/0072dbf6608334d458653581c3cd84d0 to your computer and use it in GitHub Desktop.
Example bypassing the check in `termination` library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define (f x) | |
;; implicit recursive call to `f` not instrumented by the library | |
(with-handlers ([number? f]) | |
(raise (add1 x)))) | |
(begin/termination (f 0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment