From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#58563: 29.0.50; Generic functions and advertised-calling-convention Date: Sun, 16 Oct 2022 16:49:28 +0200 Message-ID: <871qr7j01z.fsf@gnus.org> References: <878rlgjcbl.fsf@tcd.ie> <878rlgjbwq.fsf@gnus.org> <875ygjj122.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29464"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "Basil L. Contovounesios" , 58563@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 16 16:50:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ok4xv-0007TG-88 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 16:50:11 +0200 Original-Received: from localhost ([::1]:53318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok4xt-0005Iv-PF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 10:50:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok4xm-0005IX-Fp for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 10:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ok4xm-0004TF-7N for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 10:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ok4xl-0004QB-TC for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 10:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Oct 2022 14:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58563 X-GNU-PR-Package: emacs Original-Received: via spool by 58563-submit@debbugs.gnu.org id=B58563.166593178016953 (code B ref 58563); Sun, 16 Oct 2022 14:50:01 +0000 Original-Received: (at 58563) by debbugs.gnu.org; 16 Oct 2022 14:49:40 +0000 Original-Received: from localhost ([127.0.0.1]:45871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok4xQ-0004PM-AD for submit@debbugs.gnu.org; Sun, 16 Oct 2022 10:49:40 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok4xP-0004P9-BQ for 58563@debbugs.gnu.org; Sun, 16 Oct 2022 10:49:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MVgAOZ5+IAOK2bVWIY1UpZYwSIb9FKP+YMtreJ0Rznw=; b=g34rGLZpN+OswWDPEQDhP+ZPCa uFNKWDHm0q9aUQRCrIyZZLaNI9vOU+Y3AZf6ecWNLERpnxAQ6xBEbxgRGPI70ovq07oe2oWeIpN/K 55kySBCbEPTVIRMzeyC0DE4N+BKn/chQ6fbuvRCpaEo/zc1b6o1magH2xvwZsj3bmGiY=; Original-Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ok4xF-0007Lf-Bu; Sun, 16 Oct 2022 16:49:31 +0200 In-Reply-To: <875ygjj122.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 16 Oct 2022 16:27:49 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEX39vZbTkmroJ3/ //8oMz/yAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKEA4tCDIP4tYAAAGHSURBVCjPrZGxbtswEIZ/ E7BheUqDOLA3wYgKy0+hZvOmQXcQOalFZUB+Ci0BnE5CUQpxJqUoA1lP2aNc5Al6A48f+N9/RxIz ffh2HoZWH1yCHbUFFoO7lJcUMesa6nIstckQmarGXJE2nCM6H4Cgjpkpxz0dQsTJ1pLNsKQ/4Tzq +yWVHl6wCH4nkaYrqPdqMaUR8rk6nuLnqyzdhj82pMnlXtb2uzciehbQmvhiBarMgxWNhPUyQ+OW jh60Lomco1yA6cue6X3JMuiayVgelTnOPhnvpnNIsnZ4/QDDfWvtOJum0vSDq1hOAunDQ+SLMigB M8RudPONeLPzUMhjWDLGDtKiBmDb2h3V2atEJ2N8x5qKENP09QGbE35ScoN7lQTdqZsU21WDJoBq HlaqxmyPYiVln+9kURkeO+/xS5ZJioolf2LUiGaw8gm4rdCgU1hbgW6Pu7cE+CoyVU/cE/mycuAp JsS9NzSUrQQcxrD5jcDjFaZpA8XdFRDJrfrwH6ga/yn+Agg7kG2aHvR7AAAAJXRFWHRkYXRlOmNy ZWF0ZQAyMDIyLTEwLTE2VDE0OjQ1OjA4KzAwOjAwqzVL0gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAy Mi0xMC0xNlQxNDo0NTowOCswMDowMNpo824AAAAASUVORK5CYII= X-Now-Playing: Gang Gang Dance's _God's Monkey_: "(untitled)" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245656 Archived-At: Lars Ingebrigtsen writes: >> I wouldn't bother special casing this. >> I think it's OK to say that if you want an >> `advertised-calling-convention` you need to add a `cl-defgeneric`. >> This likely applies to most other `declare`ations, actually. > > Yes, good point. On the other hand, thinking about this a bit more -- it's not an uncommon thing to just use defmethod to without a defgeneric to just ensure that you're calling the function with arguments of the right type. Making people add a fallback method (to error out on) would just be pointless noise for them.