Re: Adding the doctests module to guile-lib or guile?

2024-11-23 Thread Dr. Arne Babenhauserheide
Hi, I now went ahead and created a repository for guile-doctest. It uses (ice-9 doctests) in the hope that it can get merged into guile in the not too distant future: https://hg.sr.ht/~arnebab/guile-doctests/browse Currently it still needs proper texinfo docs. Aside from that it’s complete, as f

Re: Keywords in GOOPS methods

2024-11-23 Thread Mikael Djurfeldt
Hi Maxime, Well, these particular examples aren't valid since GOOPS doesn't allow type specifiers for keyword arguments. (It's the same in CLOS.) Type dispatch is done *only* on the required arguments. Best regards, Mikael On Sat, Nov 23, 2024 at 4:31 PM Maxime Devos wrote: > >Any opinions on

RE: Keywords in GOOPS methods

2024-11-23 Thread Maxime Devos
>Well, these particular examples aren't valid since GOOPS doesn't allow type >specifiers for keyword arguments. (It's the same in CLOS.) Type dispatch is >done *only* on the required arguments. That’s a shame, it should support them IMO, it’s a major limitation if it doesn’t. A variant with un

RE: Keywords in GOOPS methods

2024-11-23 Thread Maxime Devos
>Any opinions on what is best: Having a define-method* or having the >functionality in define-method itself? You can’t unify define-method with define-method* without making some arbitrary choices in some special cases (the same applies to define-method* too actually, and also to define-method