[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should we be touching goops?

From: David Kastrup
Subject: Re: Should we be touching goops?
Date: Fri, 03 Jun 2022 15:21:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Dan Eble <> writes:

> On Jun 2, 2022, at 20:32, David Kastrup <> wrote:
>> #(define-method (+ (a <Moment>) (b <Moment>)) (ly:moment-add a b))
>> #(define-method (- (a <Moment>) (b <Moment>)) (ly:moment-sub a b))
> Could we also introduce a distinction in type between points and spans
> of time?  "Measure 12 minus Measure 8" is 4 measures, but it is not
> Measure 4; and "Measure 12 plus Measure 8" is not a thing.

While I get your point, I think that this ship has sailed.  That's not
as much a problem of GOOPS but of the preexisting code.

I think the first point of cleanup would be to replace Moment's misuse
as a substitute for "Rational" (which did not have a Scheme
representation and was done at a time where Guile did not have
"arbitrary" precision rationals), like in baseMoment.

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]