From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos via General Guile related discussions Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: RE: Keywords in GOOPS methods Date: Sat, 23 Nov 2024 16:49:14 +0100 Message-ID: <20241123164914.gFpC2D00841pia206FpC0X@albert.telenet-ops.be> References: <87iksg2qnm.fsf@gnu.org> <20241123163143.gFXi2D00541pia201FXiCK@xavier.telenet-ops.be> Reply-To: Maxime Devos 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="19429"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "janneke@gnu.org" , guile-devel , =?utf-8?Q?Ludovic_Court=C3=A8s?= , guile-user , Andy Wingo To: "mikael@djurfeldt.com" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Nov 23 16:49:39 2024 Return-path: Envelope-to: guile-user@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 1tEsOB-0004sh-LV for guile-user@m.gmane-mx.org; Sat, 23 Nov 2024 16:49:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEsNt-0001K4-JU; Sat, 23 Nov 2024 10:49:22 -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 1tEsNr-0001Je-20 for guile-user@gnu.org; Sat, 23 Nov 2024 10:49:19 -0500 Original-Received: from albert.telenet-ops.be ([2a02:1800:110:4::f00:1a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEsNp-00011a-41 for guile-user@gnu.org; Sat, 23 Nov 2024 10:49:18 -0500 Original-Received: from [IPv6:2a02:1811:8c0e:ef00:d8bc:6eed:a17e:32a] ([IPv6:2a02:1811:8c0e:ef00:d8bc:6eed:a17e:32a]) by albert.telenet-ops.be with cmsmtp id gFpC2D00841pia206FpC0X; Sat, 23 Nov 2024 16:49:14 +0100 Importance: normal X-Priority: 3 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r24; t=1732376954; bh=pHulyAcDrJ5xNvl4m8bYqqVX/DsuEphSxZgw4uuvkXE=; h=Message-ID:MIME-Version:To:Cc:From:Subject:Date:In-Reply-To: References:Content-Type:From; b=IIHXbu4mAIwT8qUh3lCsi1P3w7FYjuZCcOvWIq7vAlQjZQoGTpuVQR3vgMdTp83UH e089Pt+9vechIEJXdA72V0St3s5OvrRqZxHF4HwUJHWTlBdy/vjjfXlN6pG+cE7OSP vJ/wlgjoS+IdimaeFts8wB/ukXKQWHKh0n1vm/gnUe6KTTDXfO+bE57e7TOa4DmDx0 2s81rmpkWaCxwH1y4qrWVklErCtH/gcc4stygieUQ75TsWl1IUvKtfrwlWyr8izqwo lZiNs4+6HyIk0TTMZbHFghoCEPmpeQNdWLpSyGlQWR0IENtlfWy9bOeTKfl+wJzEW4 MaNm8mYsk126Q== Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@telenet.be; helo=albert.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19918 gmane.lisp.guile.devel:22791 Archived-At: >Well, these particular examples aren't valid since GOOPS doesn't allow typ= e specifiers for keyword arguments. (It's the same in CLOS.) Type dispatch = is done *only* on the required arguments. That=E2=80=99s a shame, it should support them IMO, it=E2=80=99s a major li= mitation if it doesn=E2=80=99t. A variant with untyped keyword arguments: (define-method (f (a ) (b )) (pk 'positional)) (define-method (f (#:key foo)) (pk 'optional-keyword foo)) (f #:foo 'bar) Who should win? Both are a quite specific match. Best regards, Maxime Devos