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

Split this into two operators? #45

Open
fatcerberus opened this issue Feb 7, 2017 · 3 comments
Open

Split this into two operators? #45

fatcerberus opened this issue Feb 7, 2017 · 3 comments

Comments

@fatcerberus
Copy link

As both a JS and C/C++ developer, :: confuses me. foo::bar in the current proposal means: bar.bind(foo) but I intuitively expect it to mean: foo.bar.bind(foo). So I would propose two operators, foo:::bar for the former, and foo::bar for the latter.

@jackmahoney
Copy link

Triple colon seems too ugly.

@Alxandr
Copy link

Alxandr commented Feb 8, 2017

Not to mention to similar. It would be easy to read the code and not see the difference.

@fatcerberus
Copy link
Author

Yeah, I see what you mean. My other idea was -> but that might get confused for an arrow function.

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

3 participants