[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Renaming baseMoment
From: |
David Kastrup |
Subject: |
Re: Renaming baseMoment |
Date: |
Fri, 04 Oct 2024 09:59:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Saul Tobin <saul.james.tobin@gmail.com> writes:
> I can see duration vs. moment becoming a source of confusion, since these
> are not the same type. I would expect a property named baseDuration to take
> a value of type ly:duration?.
Yup, but a duration has structural properties (there are different
durations with the same length). That is not wanted here.
> That is starting to open a can of worms, though, because the usage of
> duration vs. moment is inconsistent in the codebase. Arguably some of
> these properties that refer to spans of musical time should be changed
> to take values of type ly:duration? rather than of type ly:moment?.
This isn't one. What is more of an issue that a lot of properties
taking a ly:moment? should rather be taking an exact rational (because
they will never have grace parts), and the reason that they don't is
that early versions of Guile did not have exact rationals.
That is also the reason for the existence of functions like
ly:moment-mul and ly:moment-div which make no sense whatsoever in terms
of their argument and result types.
--
David Kastrup
- Renaming baseMoment, Dan Eble, 2024/10/02
- Re: Renaming baseMoment, Werner LEMBERG, 2024/10/03
- Re: Renaming baseMoment, Saul Tobin, 2024/10/03
- Re: Renaming baseMoment, Dan Eble, 2024/10/03
- Re: Renaming baseMoment, Joram Noeck, 2024/10/03
- Re: Renaming baseMoment, Dan Eble, 2024/10/03
- Message not available
- Re: Renaming baseMoment, Carl Sorensen, 2024/10/03
- Re: Renaming baseMoment, Saul Tobin, 2024/10/03
- Re: Renaming baseMoment,
David Kastrup <=
- Re: Renaming baseMoment, Dan Eble, 2024/10/04
- Re: Renaming baseMoment, David Kastrup, 2024/10/04
Re: Renaming baseMoment, Michael Käppler, 2024/10/03
Re: Renaming baseMoment, Dan Eble, 2024/10/04