Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postfix Notation #44

Open
keean opened this issue Aug 29, 2018 · 1 comment
Open

Postfix Notation #44

keean opened this issue Aug 29, 2018 · 1 comment

Comments

@keean
Copy link
Owner

keean commented Aug 29, 2018

If IDE tooling, and autocomplete is so important, should functional languages use postfix notation?

((3, 4)add)print

In a way the . is used for this in most OO languages, but with multiple-dispatch, which arguments go before and which after the function name? Perhaps this syntax is more readable?

(3, 4).add.print
@shelby3
Copy link

shelby3 commented Aug 29, 2018

Dot notation as syntax sugar only.

First argument is always the the one applied by dot notation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants