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 }}
Repository navigation
Typed calls can execute once per accepting declaration or type witness #312
A type declaration can multiply a call's answers and side effects. For example:
(: either (->Atom%Undefined%))
(: either (->Number%Undefined%))
(= (either$x) (called$x))
!(collapse (either7))
Both stable and main can return ((called 7) (called 7)). The same duplication affects a body that updates state. On stable, a value with several types can also repeat the body under a single polymorphic declaration.
The intended behavior is one execution per distinct argument-value binding, with type declarations determining admission and filtering each result. Distinct body answers and bindings introduced by relational type checks must remain distinct; multiple proofs of the same check should not repeat the call.
The stable and main implementations need separate changes because stable uses runtime type queries while main also has overload dispatch and delayed type requirements.
PR #156 addressed repeated identical signatures. This reproduction uses different signatures that both accept the call.
Activity