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: Declaring Lisp function types Date: Sat, 24 Feb 2024 04:24:32 -0500 Message-ID: References: <389657c1-3bc5-4577-82a1-df4244ed5d58@alphapapa.net> <86v86ez6af.fsf@gnu.org> <87y1baz1i0.fsf@neko.mail-host-address-is-not-set> <2827f3df-8eb2-431e-8491-f772e988474a@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14127"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Tomas Hlavaty , Eli Zaretskii , emacs-devel@gnu.org To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 24 10:25:24 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 1rdoHc-0003Jc-1Y for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Feb 2024 10:25:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdoGo-0006EG-NQ; Sat, 24 Feb 2024 04:24:34 -0500 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 1rdoGn-0006E1-Sg for emacs-devel@gnu.org; Sat, 24 Feb 2024 04:24:33 -0500 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 1rdoGn-0002LW-Jj; Sat, 24 Feb 2024 04:24:33 -0500 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=pfTcVoxO6TDK7Hcwm/+kLiiWEtMWEFbc07WjtOijYRg=; b=KXV0yEpZS/eIpiAQlOXH xnPEXESiWCc37basRtg2wos5klFc5C7EjqNfhP/28PiVzt8SuWKHPcgWoL/lJQEGsRV3PMNB3RIKx vFBuvd0oR57vXiefXt4IM2XklT8gSKzQfoKkKtEgL6J+cV7hmICK7A6mZLM/r+UdQ4hsZ5+Ah7tnM fzL5e6teSUYWaZxUzVCpJHv9kY9JCnu1IcADFcaPLMKYZ2iwJoDya8uuTUGRc+K//9qdAUXr8PeMm hfYIZBLMdytUFGhuAlcIFlRz2Szy13xCxR0kI9hCx7cckzFi1JM61oIoFM/NHDCEB4LyHUZ6ShUbO WqRFju35TLQ99w==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rdoGm-0008GV-Ps; Sat, 24 Feb 2024 04:24:32 -0500 In-Reply-To: <2827f3df-8eb2-431e-8491-f772e988474a@alphapapa.net> (Adam Porter's message of "Sat, 24 Feb 2024 03:08:35 -0600") 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:316486 Archived-At: Adam Porter writes: > On 2/24/24 02:53, Tomas Hlavaty wrote: >> On Sat 24 Feb 2024 at 09:10, Eli Zaretskii wrote: >>>> (declare (type (integer integer) integer)) >>> FWIW, Andrea's proposal looks more descriptive to me. "Type" is too >>> general, whereas "function" is more specific. >> both are hard to grep for which is inconvenient > > "(declare (type" would be hard to grep for? Wouldn't that be a unique > string in Elisp code? I can't find any matches for that in master. Can't either for "(declare (function" :) Andrea