From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: (declare (type (function... Date: Tue, 14 May 2024 05:26:18 -0400 Message-ID: References: <864jb43al5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2085"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: marco.antoniotti@unimib.it, emacs-devel@gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 14 11:27:05 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 1s6oR6-0000In-QJ for ged-emacs-devel@m.gmane-mx.org; Tue, 14 May 2024 11:27:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6oQU-0008QC-98; Tue, 14 May 2024 05:26:26 -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 1s6oQQ-0008Q2-Vd for emacs-devel@gnu.org; Tue, 14 May 2024 05:26:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6oQP-0006lO-Lj; Tue, 14 May 2024 05:26:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=LLuFz/RaqsAKRLN9jEtF14x1XzBZ5dtp+ezJ9pg37Pg=; b=FZNwmqMKoj0n4fbTThhx a0Tu9rQj4BAcmFFrN6re0/FQ74wrRHWLh6iClvFUfBV0yJHp+hHO8uf+ZrLDv8RYmR4YFOOTCXYyc /1fmZXnkb6QEea8MHVQ8JMpfpCfDGloa0aiPZPgAcrwrj81AlHxqMalWv4pLwQovTF0C5QUAla/F1 km61Cc7ecOz1d1v/Cmz8MJgQ8xzsjYzM/g+eAu9gUhI8qf9PKUhRNXpQ0aa44tOchl5rkVbAasstb lKSIBo8jWKpmTzNBxR72Uncfeiyx+Vjj+HgX4/e/ZY7TegpXykjfTAqIF07BBWBItEiQjClH2DVgA o4rKcD0rTYSt7g==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s6oQN-0007FB-8g; Tue, 14 May 2024 05:26:19 -0400 In-Reply-To: (Andrea Corallo's message of "Mon, 13 May 2024 17:12:52 -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:319219 Archived-At: Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Andrea Corallo >>> Cc: emacs-devel@gnu.org, Eli Zaretskii , Stefan Monnier >>> >>> Date: Fri, 10 May 2024 06:21:21 -0400 >>>=20 >>> Marco Antoniotti writes: >>>=20 >>> > Dear Andrea >>> > >>> > The point is NOT to diverge from Common Lisp. Such divergence is - I= MHO - unwarranted. Plus, the proposal for the ftype >>> > declaration also carries over to type declarations, which, again, are= useful per se, even if the compiler is "smart >>> > enough" (ok; this one is for old-timers :) ) >>> > >>> > Having said that, a provision can be made that a nameless ftype decla= ration at a function top level refers to the >>> > "definenda" function. Again, having to use ftype instead of type is = a consequence of ELisp being a 2-lisp. >>>=20 >>> Dear Marco, >>>=20 >>> I see your point and share the intent, given your provision =F0=9F=98= =83 for >>>=20 >>> (defun foo (x y) >>> (declare (ftype (function (integer number) number))) >>> (+ x y)) >>>=20 >>> I'm personally okay with the change. >>>=20 >>> Eli Stefan WDYT? >> >> Fine by me, thanks. > > Ok, I'll try to take care of this tomorrow. Gut, should be in with a39a8060124. Thanks Andrea PS Marco you'll receive a customer satisfaction survey shortly, please give us a good score =F0=9F=98=80.