Open koteisaev opened 2 years ago
That seems like a different proposal, and I’m very skeptical that there’s a use case for it outside of transpiler output, since in actual user code, this is done by destructuring the function in one statement, and calling it in the next.
Hello! Lately I was intrigued with the need to use syntax like
(0, expr)
for imports from modules to make sure it does not called on module import asthis
. So, what exactly happen if this proposal will be adopted, and following construct will be applied:What if this proposal can be extended to either
or
to explicitly say "I want to call
importFunc
as independent function without relation tomodule1
import reference", with undefined this?May be,
:>
can be used to call member method withundefined
this and->
to call some method with left operand of this, likeThanks for reading this.