You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2025. It is now read-only.
I've read the current PROTOSPEC.md and tripped over the behavior of the [[OperatorCounter]] internal slot. It is initialised when the operator set is created, and informs the dispatch resolution:
if a's operator set has a lower [[OperatorCounter]] than b's operator set, …
This seems hazardous. The resolution of overloaded operators would depend on execution order of the modules that did create the operator set, and thereby on import order in modules possibly located far away from the usage of the overloads. This is fragile and will easily break.
Instead, I suggest that the resolution of an operator should depend on the order in which the respective operand's operator sets were introduced into the local scope wit with operators from declarations.