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: Mon, 13 May 2024 17:12:52 -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="25043"; 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 Mon May 13 23:13:22 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 1s6cz3-0006JG-FB for ged-emacs-devel@m.gmane-mx.org; Mon, 13 May 2024 23:13:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6cym-0005Ol-SC; Mon, 13 May 2024 17:13: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 1s6cyh-0005LJ-4i for emacs-devel@gnu.org; Mon, 13 May 2024 17:12:59 -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 1s6cyg-0004mt-JR; Mon, 13 May 2024 17:12:58 -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=/kTasW0uYcEmJMAg3sbQH8nnmDkY0RuZzRGobR8B5FQ=; b=rJzZjnBRtTagOCRLiAD8 Z60RyegQO2ClSYIfVijnexa0z0HPe5w2iQHLviJoE6VOKxeu4GWFi96PXqQ56W/O40gbJKWY93wPk amP3MYzr9oePSmFwLgUmgs0t+PSdJCuEKRZSolJW4SwHuLSwpEsL3bOuJypNbujWX0EaVq0mO3Gad WH1X1QK7XClZ1exBVqfUXQ+jEZmS4WC2YRSFCn0r4lcemUsnYN63TGOwvAQc0IXLXGRkS0PAtmTes JsP8DbisQHjVs7ErruPIisaysMDQMbkNZMRWl/nqGDC9uTGLw+lYL3JxfctInfCRCfwU7/XcBuqV+ V8T03FPXW9UQ5g==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s6cyb-0006y0-1D; Mon, 13 May 2024 17:12:55 -0400 In-Reply-To: <864jb43al5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 May 2024 13:29:58 +0300") 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:319209 Archived-At: 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 - IM= HO - 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 declar= ation 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. Andrea