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: Fri, 10 May 2024 06:21:21 -0400 Message-ID: References: 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="2576"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org, Eli Zaretskii , Stefan Monnier To: Marco Antoniotti Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 10 12:22:03 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 1s5NO6-0000P1-IW for ged-emacs-devel@m.gmane-mx.org; Fri, 10 May 2024 12:22:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5NNa-0003lV-8P; Fri, 10 May 2024 06:21:30 -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 1s5NNW-0003lK-Rh for emacs-devel@gnu.org; Fri, 10 May 2024 06:21:27 -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 1s5NNV-0001FY-Cc; Fri, 10 May 2024 06:21:25 -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=NIgfQisUYF46V+jEL5Z4MYJZd32KK9IhMrDVb4CpdNw=; b=orSxz+gD6eU35JXQFKAw HYMXPSwNHjl9hlYJNtkC5vJ9i0WXl0vc8/w/lhVdmlDS48rY2GT9cwiKvJlwqU/texDVuG/zrYiXA Mvafute7vj9127BN5hDB5DxJl8GLRN1at+fmiDTFGYbcKWHyx0A1dAZWdAyK3miz/e85BwFsIFKh7 EVTnb5GVzjr86uwCycOHHG4zTPTBCnPVheFDdx32Lquj/rOpaL3cl8l1vNRHZ61oW+eVAdl2xkEOe 7dvBCxAGumuZpIHK2wH0tcs2Uq9nA2RC+AzwrqCcfRhfYPX93NbzL+GAkVV65fSSq0WnGamxs7Rn1 jn1dPmVdxhequw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s5NNS-0001hN-0b; Fri, 10 May 2024 06:21:23 -0400 In-Reply-To: (Marco Antoniotti's message of "Fri, 10 May 2024 11:50:03 +0200") 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:319126 Archived-At: Marco Antoniotti writes: > Dear Andrea > > The point is NOT to diverge from Common Lisp. Such divergence is - IMHO = - unwarranted. Plus, the proposal for the ftype > declaration also carries over to type declarations, which, again, are use= ful 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 declarati= on at a function top level refers to the > "definenda" function. Again, having to use ftype instead of type is a co= nsequence of ELisp being a 2-lisp. Dear Marco, 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. Eli Stefan WDYT? Thanks Andrea