From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marco Antoniotti Newsgroups: gmane.emacs.devel Subject: Re: (declare (type (function... Date: Fri, 10 May 2024 16:17:45 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c18cc206181a334a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12262"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrea Corallo , emacs-devel@gnu.org, Eli Zaretskii To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 10 17:11:56 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s5Rud-0002yZ-Mn for ged-emacs-devel@m.gmane-mx.org; Fri, 10 May 2024 17:11:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5Ru2-0003uP-Vl; Fri, 10 May 2024 11:11:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5R4T-0006xo-BQ for emacs-devel@gnu.org; Fri, 10 May 2024 10:18:01 -0400 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5R4R-0001UU-26 for emacs-devel@gnu.org; Fri, 10 May 2024 10:18:01 -0400 Original-Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-518931f8d23so2163512e87.3 for ; Fri, 10 May 2024 07:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unimib.it; s=google; t=1715350677; x=1715955477; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+BLMVYfD9SaMNZaFqmPLnislkj2tdR0OLmCHwaQ5/Wo=; b=JUNKcGxrl7WLsNjTCQ2V+DlSfa4+QnUh/xlq/9OLdWR7Ug4uaHtfEzq6LRY+SnbwOM UUDjTflmw6MtoMTI2wv6/BYlxD6mN5L0lH8MC8Lc4r5qsUm2OM/yn1tx/W8dUT/3eKY3 bT5Tm7mzIk3WHN6lgnRYxWrv8wm/+Om+M6MX/z7vOFk27axusI3n+DoUYmgAfH1QYh7u wauMMvak/9uhCRzHSQq8raX37ilAYpxdZRHarwmesJfLdKKR8r9rTkq6cl03WQHKvPo2 QIA8mZ7A4z6PPayG0RZrySbWaKM2uykWPrtCnklLuJeSAL39gMr5ggU6t5nYzraF0gbR FYwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715350677; x=1715955477; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+BLMVYfD9SaMNZaFqmPLnislkj2tdR0OLmCHwaQ5/Wo=; b=p42PqHE+AhFKw72lzFhTJCotNUU9zW+MdCp3+mMuBdrP7zsaDJaiJ9J+ejw1vFgMPr OrvmA2mKd14/K9+o7EPdaUaeyZkp8AciMBV2jTf2vtF97GrQL95V+DhUNf1kraqznlCm /gJkB1OW/2OiA0GvbHX8y0Q9Ltfd8ZSbmEMILHXe6NBwNa1mFuwKf+J/r3GwYgG8/ymn z5zDJnSPnCSvs2j70TafE1J/QSEQ8AiUi6Y4WXdwG/+RGhbppyfLvc+cnnWtw9sBEh60 FyFlOA0hELxQiCbc3npWmkJWdKpePb5wZ6EysHnkzwDVrC265JpMabr15DNTGgHbZRqf c0UA== X-Forwarded-Encrypted: i=1; AJvYcCU/FRwUXLlNPKGQsxJOhgGWBaXPoTjIg7V/uNAuJQQqaXu+3SxSpljr88NJshR2NTyiQZisysDfK2Xc/UhOgKTr2gGh X-Gm-Message-State: AOJu0YxIrVsGaxhZfebtw/KcG7ZEUBpMfiMVWDqO15KXZpXwjCFyMYhV 6XkFtBiDfZn2D82xDH6XT5chKSNWMdsCl6JK40pJwzOHVT1PNYkXj8qgYW/whc1t5MFPHH2L2ET L19Q70VXqowx1zSkatG4ubX+1VPHpWOWGnpbYfw== X-Google-Smtp-Source: AGHT+IHFWi7rNtYaAZhZe39PcY/+xtjsKwRpC3aCUhU5ezk1DYtOTcKB3pJ7N48Wtm8vu6Opud1hBn8KPxSvZO15i9A= X-Received: by 2002:ac2:5ecb:0:b0:520:9b91:2d5a with SMTP id 2adb3069b0e04-52210273cc1mr1804069e87.59.1715350676795; Fri, 10 May 2024 07:17:56 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=marco.antoniotti@unimib.it; helo=mail-lf1-x12a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 10 May 2024 11:11:17 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319143 Archived-At: --000000000000c18cc206181a334a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Stefan let me just add one (I swear!) more comment. That CL is not perfect is a well known fact. Case wars anybody? Missing pieces? Shall I even mention (insert Kurtz's "The Horror" quote here) ... pathnames? But, since (function) type annotations are being added, not causing other divergences is, IMHO, a Good Thing (tm). All the best MA On Fri, May 10, 2024 at 4:04=E2=80=AFPM Stefan Monnier wrote: > >> The point is NOT to diverge from Common Lisp. Such divergence is - > >> IMHO - unwarranted. > > CL is a good inspiration in general, but ELisp is not and never will be > Common-Lisp, so it's not indispensable to adhere to its choices. > I think its provision of type annotation is not great, so there isn't > a strong need to follow it. > > > I see your point and share the intent, given your provision =F0=9F=98= =83 for > > > > (defun foo (x y) > > (declare (ftype (function (integer number) number))) > > (+ x y)) > > > > I'm personally okay with the change. > > No objection here either. > > > Stefan > > --=20 Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, University of Milan-Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY --000000000000c18cc206181a334a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Stefan

let me just add on= e (I swear!) more comment.

That CL is not perfect is a we= ll known fact.=C2=A0 Case wars anybody?=C2=A0 Missing pieces?=C2=A0 Shall I= even mention (insert Kurtz's "The Horror" quote here) ... pa= thnames?

But, since (function) type annotations are being= added, not causing other divergences is, IMHO, a Good Thing (tm).

All the best

MA

On Fri, May 10, 2024 at 4:04=E2=80=AFPM Stefan Monnier <monnier@iro.umontreal.ca> wrote= :
>> The p= oint is NOT to diverge from Common Lisp.=C2=A0 Such divergence is -
>> IMHO - unwarranted.

CL is a good inspiration in general, but ELisp is not and never will be
Common-Lisp, so it's not indispensable to adhere to its choices.
I think its provision of type annotation is not great, so there isn't a strong need to follow it.

> I see your point and share the intent, given your provision =F0=9F=98= =83 for
>
> (defun foo (x y)
>=C2=A0 =C2=A0 (declare (ftype (function (integer number) number)))
>=C2=A0 =C2=A0 (+ x y))
>
> I'm personally okay with the change.

No objection here either.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan



--
Marco Antoniotti, Professor=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 tel. +39 - 02 64 48 79 01
DISCo, University = of Milan-Bicocca U14 2043=C2=A0=C2=A0 http://dcb.disco.unimib.it
Viale Sarca 336
I-= 20126 Milan (MI) ITALY
--000000000000c18cc206181a334a--