Email list hosting service & mailing list manager

arity failures Thomas Bushnell BSG (13 Nov 2009 18:54 UTC)
Re: arity failures David Van Horn (13 Nov 2009 19:05 UTC)
Re: arity failures Thomas Bushnell BSG (13 Nov 2009 19:25 UTC)
Re: arity failures Per Bothner (13 Nov 2009 19:16 UTC)
Re: arity failures Thomas Bushnell BSG (13 Nov 2009 19:27 UTC)
Re: arity failures Shiro Kawai (13 Nov 2009 20:13 UTC)

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/