DrRacket hides the other arguments to make the error message initially
more compact. Click "..." in DrRacket to expose the arguments.

At Fri, 5 Jul 2019 10:49:09 -0700, Kevin Forchione wrote:
> Hi guys,
> Been adding raise-argument-error to my functions to catch errors and have 
> noticed that the 2nd version of the form doesn’t actually list the other 
> arguments - even for the example in the docs:
> 
> >(define (feed-animals cow sheep goose cat)
>     (if (not (eq? goose 'goose))
>       (raise-argument-error 'feed-animals "'goose" 2 cow sheep goose cat)
>       "fed the animals"))
> >(feed-animals 'cow 'sheep 'dog ‘cat)
> 
> . . feed-animals: contract violation
>   expected: 'goose
>   given: 'dog
>   argument position: 3rd
>   other arguments...:
> > 
> 
> Is this form recommended? I’ve noticed that the documentation says some of 
> the 
> error forms have been deprecated. 
> 
> -Kevin
> 
> -- 
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/91E9AD52-8F17-4BC3-98AB-5E43FFAB
> C9DF%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/5d1f8e37.1c69fb81.e708.330dSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to