Add comment.

original commit: 9f659c7df30b42ec49e6da1d85b5a0e5605fdcd1
This commit is contained in:
Sam Tobin-Hochstadt 2013-05-21 07:53:43 +01:00
parent 0ab3099f7e
commit 77762e7742

View File

@ -12,7 +12,8 @@
(import restrict^ dmap^)
(export constraints^)
;; It's hard to remove this use of exceptions
;; because there's no monadic version of `hash-union` etc
(define-values (fail-sym exn:infer?)
(let ([sym (gensym 'infer-fail)])
(values sym (λ (s) (and (pair? s) (eq? (car s) sym))))))