JSAbrahams / mamba

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

Make `in` a separate construct #113

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Current Issue

We can only check containment using contains.

High-level description of the feature

Allow checking of containment using in such as in Python.

Description of potential implementation

Make in a separate construct, or, operator. Then remove in from the grammar of the for loop, instead, we check that the collection itself is a in construct.