Re: Keywords in define-method

2024-11-26 Thread Mikael Djurfeldt
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

Re: Keywords in define-method

2024-11-26 Thread Mikael Djurfeldt
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,

Re: Keywords in define-method

2024-11-25 Thread Mikael Djurfeldt
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