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: Fri, 15 Mar 2024 12:49:15 -0400 Message-ID: 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="26663"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Stefan Kangas To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 15 17:50: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 1rlAlE-0006jk-5z for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Mar 2024 17:50:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlAk9-0001uf-LC; Fri, 15 Mar 2024 12:49:17 -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 1rlAk8-0001uQ-Mh for emacs-devel@gnu.org; Fri, 15 Mar 2024 12:49:16 -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 1rlAk8-00005z-E5; Fri, 15 Mar 2024 12:49:16 -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=sOh/0exWJ8V6CKJ0prCHiJXp9LFDaul6ADr8iqB/psc=; b=cywJWA4E9T4fCfggBPwK KGo1RS9SI9VUfK99WCeXhaTNZQ5qjcfrYkKGNIfP6lYLxAB0JIc+eulB16SDQJwViBOVrjGKaiOm9 qzEfLdp5S7F8G6En7rsXSu6bgF/SWnvqZG/HX+xLnUcm+1OywZ5/kD21GsmHiJoc3OzYTpnxH/qae rUBHEMfsYHts1FJjWvReyigxyAEwPEKxI2Kh322ynkX35e9nxIOZTqTWpLtPn1j+AmSULZEuwaRdY aa+p/+ud7oUyFpbHxxtXTlC+Up2DSJudPNmKlHdP0/y5f5uD5aV7lSraiOT6q4xT6cOyMX6oerQt8 z2LhzgseYERmGA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rlAk7-00012z-JE; Fri, 15 Mar 2024 12:49:15 -0400 In-Reply-To: (Andrea Corallo's message of "Fri, 23 Feb 2024 11:02:52 -0500") 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:317083 Archived-At: I'd like to progress on this but in order to do that we should pick a syntax. Of the three most discussed syntaxes in this thread my order of preference is (by examples): 1: (defun sum (a b) (declare (function (integer integer) integer)) (+ a b)) 2: (defun sum (a b) (declare (type (function (integer integer) integer))) (+ a b)) 3: (defun sum (a b) (declare (type (integer integer) integer)) (+ a b)) For the reasons I've already expressed: 1 I like it, 2 I'm okay with it, 3 I very much dislike it. Maintainers WDYT? Thanks Andrea