JSAbrahams / mamba

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

Add desugar rule for retry statement #107

Closed JSAbrahams closed 4 years ago

JSAbrahams commented 5 years ago

Current Issue

We don't desugar the retry statement.

Description of the feature

A retry should allow us to retry the statement in a handle. This is akin to the retry in Eiffel.

Description of potential solution

Wrap entire try except in a while block perhaps.

Alternatives considered

Can't really think of anything else at the moment, but more elegant solutions might be possible.

JSAbrahams commented 4 years ago

Retry has been dropped from the language