[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 12:03:55 +0200 |
> Date: Sat, 24 Feb 2024 02:56:14 -0600
> Cc: acorallo@gnu.org, adam@alphapapa.net, 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.
>
> I don't understand what you mean. ISTM that "type" is exactly what's
> being declared
Yes, but type of what? If you were to suggest function-type or
function-signature or something with "function" in its name, I'd like
it better.
- 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, 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, 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 <=
- Re: Declaring Lisp function types, Adam Porter, 2024/02/25
- Re: Declaring Lisp function types, Andrea Corallo, 2024/02/24
- Re: Declaring Lisp function types, Alan Mackenzie, 2024/02/25
- Re: Declaring Lisp function types, Richard Stallman, 2024/02/25