[Top][All Lists]

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

Re: Should we be touching goops?

From: Jean Abou Samra
Subject: Re: Should we be touching goops?
Date: Sun, 5 Jun 2022 21:33:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

Le 05/06/2022 à 14:36, David Kastrup a écrit :
Something like ly:moment-add has fewer implied semantics than + .  Not
just for humans (who expect + to be more-or-less commutative and
associative even though the latter is only approximately the case with
floating point arithmetic) but even for Scheme which extends a two-term
definition of + into + with an arbitrary larger amount of summands.

Wouldn't the same concerns apply on the C++ side, though?
I mean, Moment already implements operator+ etc., and C++
understands a + b + c as (a.operator+(b)).operator+(c).
How would the C++ side of things be refactored if a distinction
between points of time and time spans is introduced?


reply via email to

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