From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Hlavaty Newsgroups: gmane.emacs.devel Subject: Re: (declare (type (function... Date: Tue, 07 May 2024 18:55:07 +0200 Message-ID: <87h6f98sus.fsf@neko.mail-host-address-is-not-set> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36283"; mail-complaints-to="usenet@ciao.gmane.io" To: Marco Antoniotti , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 07 18:55:44 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 1s4O6S-0009Bb-2r for ged-emacs-devel@m.gmane-mx.org; Tue, 07 May 2024 18:55:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4O64-0004t1-7p; Tue, 07 May 2024 12:55:22 -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 1s4O5x-0004rJ-0p for emacs-devel@gnu.org; Tue, 07 May 2024 12:55:13 -0400 Original-Received: from logand.com ([37.48.87.44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4O5u-0008Uc-W3 for emacs-devel@gnu.org; Tue, 07 May 2024 12:55:12 -0400 Original-Received: by logand.com (Postfix, from userid 1001) id 4465719E89B; Tue, 7 May 2024 18:55:09 +0200 (CEST) X-Mailer: emacs 28.2 (via feedmail 11-beta-1 I) In-Reply-To: Received-SPF: pass client-ip=37.48.87.44; envelope-from=tom@logand.com; helo=logand.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:318961 Archived-At: On Tue 07 May 2024 at 13:55, Marco Antoniotti wrote: > IMHO (and, I am not afraid to say, of many common lispers) this is > shortsighted and a rather gratuitous departure from what CL does. With > some potential unintended consequences down the road. There was a discussion about this. id:yp15xyf88yb.fsf@fencepost.gnu.org Andrea Corallo (February 23) () Subject: Declaring Lisp function types To: emacs-devel@gnu.org Date: Fri, 23 Feb 2024 11:02:52 -0500 also id:jwv4jdne65n.fsf-monnier+emacs@gnu.org Stefan Monnier (March 03) () Subject: Re: Declaring Lisp function types To: Andrea Corallo Cc: "Stefan Monnier via Emacs development discussions." Date: Sun, 03 Mar 2024 09:52:23 -0500 [...] Then I'd go with (declare (type (function ..))) [...] > (defun foo (x) > *(declare (signature (function (integer) float))* > (+ x 42.0)) grep signature ~/mr/emacs would yield lots of false positives function-signature or something like that would be better name. but this was also discussed already.