Jump to text
On this page
Copy and source
Published source confirmed at last check

Source changed 2026-11-23 16:07:44 UTC · snapshot created 2026-11-23 16:09:03 UTC · last check 2026-11-23 19:30:20 UTC

CMP.15:2 - Problem

How can independently added data variants and operations be used together while preserving established combinations, detecting unsupported or conflicting combinations, and keeping the cost of extension bounded?

A new data variant and a new operation create a possible intersection that neither author knew. An automatic loader can connect an existing implementation, but that intersection may have no implementation yet. A generic traversal can return a value of the right type while computing the wrong meaning. A new dispatch rule can also redirect an old call without changing any old source file. The construction must address these different failures instead of treating successful registration as sufficient composition.