emacs-devel
[Top][All Lists]
Advanced

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

Re: master 1d9d07fb00e 3/3: (cl--typeof-types): Rework to fix some regre


From: Andrea Corallo
Subject: Re: master 1d9d07fb00e 3/3: (cl--typeof-types): Rework to fix some regressions
Date: Tue, 05 Mar 2024 04:34:13 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>>>> I'm not sure I understand.  Is some code relying on the "order" of the
>>>>> supertypes?  Are these the regression you are mentioning?
>>>>> Must say I'm surprised supertypes can have an "order" in first place.
>>> Hmm... a lot of what I've been talking about in this thread is about the
>>> order of parents in `cl--typeof-types`, so yes, the order is important.
>>> It determines the priority between methods.
>> I'm asking because I'd personally consider any program relying on of the
>> parent order just buggy.
>
> Such dependencies are rare, indeed.  They're rare enough that I wouldn't
> have enough intuition to judge whether they reflect bugs or not.  In any
> case CLOS wants it, and I see no reason to do otherwise: the cl-generic
> code needs to order the methods according to some criteria, so I prefer
> to document that we do it like CLOS than to make it "undefined" (it'd be
> extra work to try and detect such undefined cases, on top of that, so
> instead we'd get "some arbitrary order" (like we have now) which we'd
> have to preserve to avoid breaking backward compatibility: might as well
> make this arbitrary order somewhat meaningful 🙂).

Makes sense now, thanks for the fix :)

  Andrea



reply via email to

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