Oh right --- instead of making a new exception type, it's possible to
use `require/typed` to give `raise` a different type signature:

#lang typed/racket/base

(require/typed racket/base
  (raise (All (A) (-> Any A))))

(with-handlers ((vector? values))
  (raise (vector 1 2 3)))
;; '#(1 2 3)

[[ any-wrap/c is the contract for the `Any` type ]]

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to