proposal-bind-operator icon indicating copy to clipboard operation
proposal-bind-operator copied to clipboard

Split this into two operators?

Open fatcerberus opened this issue 8 years ago • 3 comments

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.

fatcerberus avatar Feb 07 '17 23:02 fatcerberus

Triple colon seems too ugly.

jackmahoney avatar Feb 08 '17 11:02 jackmahoney

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

Alxandr avatar Feb 08 '17 13:02 Alxandr

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

fatcerberus avatar Feb 08 '17 15:02 fatcerberus