proposal-bind-operator
proposal-bind-operator copied to clipboard
Split this into two operators?
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.
Triple colon seems too ugly.
Not to mention to similar. It would be easy to read the code and not see the difference.
Yeah, I see what you mean. My other idea was -> but that might get confused for an arrow function.