From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: (declare (type (function... Date: Sat, 11 May 2024 13:29:58 +0300 Message-ID: <864jb43al5.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28768"; mail-complaints-to="usenet@ciao.gmane.io" Cc: marco.antoniotti@unimib.it, emacs-devel@gnu.org, monnier@iro.umontreal.ca To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 11 12:30:58 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 1s5k0I-0007JW-37 for ged-emacs-devel@m.gmane-mx.org; Sat, 11 May 2024 12:30:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5jzR-0006tC-DH; Sat, 11 May 2024 06:30:05 -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 1s5jzP-0006su-KH for emacs-devel@gnu.org; Sat, 11 May 2024 06:30:03 -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 1s5jzO-0005B1-FV; Sat, 11 May 2024 06:30:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SnZYhxFIJeXbulm9mUGDF6oisKZY2sjZBf8AfTLYFN8=; b=PNTk/YvU44gUPTpYFL89 6PSFtQeqmFhEiTJGSf1aMRpTnDLr54wq/FfD0SC4YHt/OXP2sb23LbhGw+QogDJ93C/IXmmnLMpwj WzaKC679MDuBT9upE60aFZ7wswSg8D3nYuAfcc1SR9SOFL9bTaNOdyxgMvfxNuBGry0KpA5hr7xxi 9ov6YCSIL3ZKrdlzvMsCNI2mQ3h/1LawXvwOA8Jn01g+8Sb8StMFVdVFvcP6o/bO2FHBd8zrzCR6d kJNQ6t040S+uxotI/CccllfdqJOUgASHABA1tQZiHumq4SF4kc+zEb419L+2GkYrh/TTD0JwV9yBJ 7IofxCgpXyN9ZQ==; In-Reply-To: (message from Andrea Corallo on Fri, 10 May 2024 06:21:21 -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:319163 Archived-At: > From: Andrea Corallo > Cc: emacs-devel@gnu.org, Eli Zaretskii , Stefan Monnier > > Date: Fri, 10 May 2024 06:21:21 -0400 > > 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 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 declaration 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. > > Dear Marco, > > I see your point and share the intent, given your provision 😃 for > > (defun foo (x y) > (declare (ftype (function (integer number) number))) > (+ x y)) > > I'm personally okay with the change. > > Eli Stefan WDYT? Fine by me, thanks.