Open fatcerberus opened 7 years ago
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.
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, andfoo::bar
for the latter.