JSAbrahams / mamba

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

Desugar interfaces #120

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Current Issue

Interfaces, Denoted by type, are currently thrown away,

High-level description of the feature

Make these into stub classes. Each function has pass as its body.

Description of potential implementation

In the desugar stage, don't throw away the type. Construct a class, and use state so that we know that we're inside a state and that the body should contain a pass statement.

JSAbrahams commented 5 years ago

Also fixed by #117