[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (*) -> 1
From: |
Tassilo Horn |
Subject: |
Re: (*) -> 1 |
Date: |
Fri, 20 Jan 2023 09:52:16 +0100 |
User-agent: |
mu4e 1.9.16; emacs 30.0.50 |
Jean Louis <bugs@gnu.support> writes:
>> Gosh, Jean, of course nobody would literally write (*) but (apply #'*
>> ...), and you'll find occurrences in emacs:
>
> That has been said that is not necessarily problem or reason.
I don't understand that sentence.
> Did you see reference to PicoLisp?
Yes, and I think it's seriously wrong with
: (+)
-> NIL
where its docs say
Returns the sum of all num arguments. When one of the arguments
evaluates to NIL, it is returned immediately.
Well, in (+) there exists no argument evaluating to NIL and
mathematically, the sum of zero numbers is 0
(https://en.wikipedia.org/wiki/Empty_sum). Same for the empty product
(*) which should be 1 (https://en.wikipedia.org/wiki/Empty_sum) but also
gives NIL in picolisp.
So why does it return NIL? And why do you apparently consider that
useful? And can something be useful even though it is incorrect?
Bye,
Tassilo
- Re: (*) -> 1, Jean Louis, 2023/01/19
- Re: (*) -> 1, Jean Louis, 2023/01/19
- Re: (*) -> 1, Jean Louis, 2023/01/20
- Re: (*) -> 1,
Tassilo Horn <=
- Re: (*) -> 1, Jean Louis, 2023/01/20
- Re: (*) -> 1, Tassilo Horn, 2023/01/20
- Re: (*) -> 1, Jean Louis, 2023/01/21
- Re: (*) -> 1, Tassilo Horn, 2023/01/21
- Re: (*) -> 1, Emanuel Berg, 2023/01/22
- Re: (*) -> 1, Jean Louis, 2023/01/22
- Re: (*) -> 1, Emanuel Berg, 2023/01/22
- RE: [External] : Re: (*) -> 1, Drew Adams, 2023/01/22
- Re: (*) -> 1, Akib Azmain Turja, 2023/01/22
- Re: (*) -> 1, Emanuel Berg, 2023/01/22