ableC icon indicating copy to clipboard operation
ableC copied to clipboard

Remove "injectable" operator productions

Open krame505 opened this issue 2 years ago • 1 comments

Currently there exists a layer of forwarding "injectable" operator productions between type-based operator overloading and the host productions. This mechanism poses issues for extensibility, and complicates tree sharing in operator overloading; this should be removed before starting on #207. In the future this could be revisited, as some sort of rewriting pass.

krame505 avatar Sep 20 '23 20:09 krame505

Removing this is a fine thing. It should be reconsidered at some point though. There is currently no way to indicate that the injected code should not "muck up" the semantics of the code it is injected into. Perhaps Dawn's modular metatheory work will lead to a way to state, if not prove, what these kinds of extensions should be allowed (or not allowed) to do.

ericvanwyk avatar Sep 21 '23 01:09 ericvanwyk