Re: arity failures Per Bothner 13 Nov 2009 19:16 UTC

On 11/13/2009 10:54 AM, Thomas Bushnell BSG wrote:
> So "passing" an arity check doesn't mean that the number of arguments
> you pass is correct, as Dybvig's already noted.
>
> Also, "failing" an arity check doesn't mean that you will get any kind
> of error or exception as a result.

Arity is useful as *part of* an implemention's error-handling.
I.e. first you check if there are too few or too many arguments,
and *then* check the argument types.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/