JSAbrahams / mamba

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

Allow exceptions without class name #141

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Relevant issues

Fixes #138 However, the issue does not describe the problem accurately, see the summary.

Summary

Match arms can have a condition without an explicit type as a condition. However, this was not the case for exceptions. I opted to allow this, and these arms become generic catchall arms which handle all exceptions.

Also fix indentation error when outputting dictionaries.

Added Tests