JSAbrahams / mamba

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

Restrict access to private fields #181

Closed JSAbrahams closed 4 years ago

JSAbrahams commented 4 years ago

Relevant issues

Fixes #173

See #188 for an identified issue.

Summary

Private fields (both direct and defined in tuples) and functions cannot be accessed outside a class.

Added Tests

JSAbrahams commented 4 years ago

Should add tests that test whether private tuples are indeed private, including their fields after #185 has been merged.