help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : Re: How to make M-x TAB not work on (interactive) decla


From: Anders Munch
Subject: Re: [External] : Re: How to make M-x TAB not work on (interactive) declaration?
Date: Mon, 16 Jan 2023 10:51:30 +0000

Jean Louis wrote:
> I actually expect function to tell me wrong number of arguments or no 
> arguments, as I find it safer for programming that way.

It makes sense for 
         (+)
to be an error, if it's written like that.
But if the code goes
        (apply #'+ a-list-of-numbers)
then a-list-of-numbers being empty is normal and expected, and 0 is invariably 
the desired result.
You can't make the former an error without the latter becoming an error as 
well, so it isn't.

regards,
Anders

reply via email to

[Prev in Thread] Current Thread [Next in Thread]