JSAbrahams / mamba

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

Allow ignoring default arguments in functions #192

Closed JSAbrahams closed 4 years ago

JSAbrahams commented 4 years ago

Relevant issues

Fixes #186 Fixes #169

Summary

Functions arguments with default are now treated as optional, so we can opt not to pass an argument. We also check that a function does not have arguments with defaults followed by arguments with no defaults.

Added Tests