I just committed a module (oop goops keyword-formals) for users who prefer
not to switch between define-method and define-method*.
If you do
(use-modules (oop goops) (oop goops keyword-formals))
you'll get a define-method which takes keyword formals.
Best regards,
Mikael
Sorry for all spam, but I realize that R6RS does this better:
(import (rename (except (oop goops) define-method) (define-method*
define-method)))
Maybe we should have a #:rename ((ORIG . SEEN) ...) in the Guile native
module system? Or perhaps we should gradually move over to R6RS?
Best regards,
Den tis 26 nov. 2024 00:51Mikael Djurfeldt skrev:
> On Fri, Nov 22, 2024 at 1:20 PM wrote:
>
>> ...which I think in your version, not having to use define-method*
>> feels more elegant/GOOPSy to me, as it's all overloads/generics,
>> but I have no strong opionion on this.
>>
>
> There's actually