JSAbrahams / mamba

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

Use dot notation when accessing object fields or functions #102

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Current Issue

Currently, we use postfix notation both for passing arguments to functions, and when accessing properties and functions of objects. This, however, might make code less readable.

Description of the feature

Use dot notation for:

We can still use postfix notation when passing arguments to functions, or when chaining function calls.

Description of potential solution

Just change the parsing rules. As a bonus, this should make desugaring a lot easier.