Detecting arity errors Lassi Kortela (15 Apr 2020 07:48 UTC)
Re: Detecting arity errors Marc Nieper-Wißkirchen (15 Apr 2020 08:49 UTC)
Re: Detecting arity errors Lassi Kortela (15 Apr 2020 09:19 UTC)
Re: Detecting arity errors Marc Nieper-Wißkirchen (15 Apr 2020 09:43 UTC)
Re: Detecting arity errors Lassi Kortela (15 Apr 2020 09:51 UTC)
Re: Detecting arity errors Marc Nieper-Wißkirchen (15 Apr 2020 10:34 UTC)
Re: Detecting arity errors Lassi Kortela (15 Apr 2020 10:54 UTC)
Re: Detecting arity errors Lassi Kortela (15 Apr 2020 10:57 UTC)
Re: Detecting arity errors Marc Nieper-Wißkirchen (15 Apr 2020 11:17 UTC)
Re: Detecting arity errors Lassi Kortela (15 Apr 2020 16:39 UTC)

Detecting arity errors Lassi Kortela 15 Apr 2020 07:48 UTC

For unit testing, a portable `arity-error?` predicate would be really
useful. You could give it an exception object and it would return #t if
the exception was caused by passing the wrong number of arguments.

We had a very brief discussion about this earlier (with John?) but I
can't remember any details about it.

Would this SRFI be the right place for it (the predicate, and the
discussion :)?