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: Yuri Khan
Subject: Re: [External] : Re: How to make M-x TAB not work on (interactive) declaration?
Date: Mon, 16 Jan 2023 17:41:49 +0700

On Mon, 16 Jan 2023 at 17:17, Jean Louis <bugs@gnu.support> wrote:

> (*) ➜ 1
> (+) ➜ 0
> (/) Wrong number of arguments: /
> (-) ➜ 0
>
> The question why is not yet clear to me. Why is it in Lisp so?

Subtraction and division are not monoid operations. As such, they do
not have an associated identity value.

They also choose to handle the single argument case specially: (- x)
is equivalent to (- 0 x) and (/ x) is equivalent to (/ 1 x).

Making (/) return the multiplicative identity would be consistent though.



reply via email to

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