[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Declaring Lisp function types
From: |
Eli Zaretskii |
Subject: |
Re: Declaring Lisp function types |
Date: |
Sat, 24 Feb 2024 09:10:32 +0200 |
> Date: Fri, 23 Feb 2024 17:35:12 -0600
> Cc: emacs-devel@gnu.org
> From: Adam Porter <adam@alphapapa.net>
>
> That looks nice to me. My only suggestion would be to change the symbol
> `function` to `type`, i.e.
>
> (defun sum (a b)
> (declare (type (integer integer) integer))
> (+ a b))
>
> Because it would be more concise and descriptive.
FWIW, Andrea's proposal looks more descriptive to me. "Type" is too
general, whereas "function" is more specific.
- Declaring Lisp function types, Andrea Corallo, 2024/02/23
- Re: Declaring Lisp function types, Adam Porter, 2024/02/23
- Re: Declaring Lisp function types,
Eli Zaretskii <=
- Re: Declaring Lisp function types, Tomas Hlavaty, 2024/02/24
- Re: Declaring Lisp function types, Adam Porter, 2024/02/24
- Re: Declaring Lisp function types, Andrea Corallo, 2024/02/24
- Re: Declaring Lisp function types, Tomas Hlavaty, 2024/02/24
- Re: Declaring Lisp function types, Tomas Hlavaty, 2024/02/24
- Re: Declaring Lisp function types, Tomas Hlavaty, 2024/02/24
- Re: Declaring Lisp function types, Adam Porter, 2024/02/24
- Re: Declaring Lisp function types, Eli Zaretskii, 2024/02/24
- Re: Declaring Lisp function types, Adam Porter, 2024/02/25
Re: Declaring Lisp function types, Andrea Corallo, 2024/02/24