Andy Wingo <wi...@pobox.com> skribis:

> One place you might want to use them though is in type checks for Scheme
> code.  We currently don't do very much of that, but probably should in
> the future.  As in:
>
>   (define (parameter-fluid p)
>     (unless (parameter? p) (wrong-type-arg p 'parameter))
>     (struct-ref p 1))
>
> The advantage of `unless' over `if' is that the wrong-type-arg is not
> called in tail position, so the error message sees `parameter-fluid' on
> the stack.

Oh, interesting, good point!

Ludo’.

Reply via email to