Skip to content

ScheduledMerges: Statically enforce existing PendingMerge invariants - #888

Open
mheinzel wants to merge 2 commits into
mainfrom
mheinzel/prototype-stronger-types
Open

mheinzel wants to merge 2 commits into
mainfrom
mheinzel/prototype-stronger-types

Conversation

@mheinzel

Copy link
Copy Markdown
Collaborator

These invariants are not new, but encoding them in the types makes it clearer that they hold. This is done in preparation of (dynamically) enforcing these invariants in the implementation, where they are currently not checked and can be violated by non-structurally-empty trees.

These invariants have already been checked dynamically, but it is
straightforward and clearer to enforce them statically.
We can not only guarantee that a pending union merge has children
(meaning it isn't structurally empty), but that there are at least two
of them.
@mheinzel mheinzel self-assigned this Oct 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant