[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 <dan@lyric.works> writes:
> On Jun 2, 2022, at 20:32, David Kastrup <dak@gnu.org> 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
- Should we be touching goops?, David Kastrup, 2022/06/02
- Re: Should we be touching goops?, Dan Eble, 2022/06/03
- Re: Should we be touching goops?,
David Kastrup <=
- Re: Should we be touching goops?, Carl Sorensen, 2022/06/03
- Re: Should we be touching goops?, David Kastrup, 2022/06/03
- Re: Should we be touching goops?, Aaron Hill, 2022/06/03
- Re: Should we be touching goops?, Dan Eble, 2022/06/03
- Re: Should we be touching goops?, David Kastrup, 2022/06/03
- Re: Should we be touching goops?, David Kastrup, 2022/06/03
- Re: Should we be touching goops?, Immanuel Litzroth, 2022/06/04
- Re: Should we be touching goops?, Luca Fascione, 2022/06/04
- Re: Should we be touching goops?, David Kastrup, 2022/06/04
- Re: Should we be touching goops?, Luca Fascione, 2022/06/04