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: Michael Heerdegen
Subject: Re: [External] : Re: How to make M-x TAB not work on (interactive) declaration?
Date: Tue, 17 Jan 2023 12:52:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Drew Adams <drew.adams@oracle.com> writes:

> Yes, it's taking a shortcut, supposing that you
> think of a "product" of one arg and a "product"
> of zero args: (* N) -> N, (*) -> 0
>
> But it's fairly common, for programmers at least,
> to consider a "product" function as accepting any
> number of arguments (or accepting a single list
> of any number of elements).

n^0 = 1.  n^0 can be interpreted as an empty product of factors n.

n*0 = 0.  n*0 can be interpreted as an empty sum of summands n.

That's all trivial stuff and used all the time - nobody would ever say
that (* 3 0) ==> 0 is wrong or want to document this case specially.

(+) and (*) are not very different, just a bit less often used in
practice.

Michael.




reply via email to

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