JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Constraint builder should implement branching model #436

Closed JSAbrahams closed 1 year ago

JSAbrahams commented 1 year ago

Summary of current issue

We want a system where

For the last two, we therefore need a system which changes the internal state of the builder to:

If we want to generalize this as far as possible, we need to continue using some sort of level system. We should then:

Proposed change

Been trying to draw this out on paper. Causing a bit of a headache.