JSAbrahams / mamba

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

`finished` field doesn't belong in `Constraints` structure #368

Closed JSAbrahams closed 1 year ago

JSAbrahams commented 1 year ago

Summary of current issue

This is confusing. Position stuff is unique to a file and not specific to a set. This should be a separate hashmap to avoid confusion. A Constraints is a fancy vector of constraints which should be solved. Once a type is uncovered for the type hint system, this should be stored top-level in the type checker and not here.