Skip to content

Instantly share code, notes, and snippets.

@philnguyen
Last active September 27, 2018 21:16
Show Gist options
  • Save philnguyen/0072dbf6608334d458653581c3cd84d0 to your computer and use it in GitHub Desktop.
Save philnguyen/0072dbf6608334d458653581c3cd84d0 to your computer and use it in GitHub Desktop.
Example bypassing the check in `termination` library
(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