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

Specify how this interacts with the PFA proposal #29

Open
dead-claudia opened this issue Oct 19, 2024 · 1 comment
Open

Specify how this interacts with the PFA proposal #29

dead-claudia opened this issue Oct 19, 2024 · 1 comment

Comments

@dead-claudia
Copy link

Ref: https://github.com/tc39/proposal-call-this#pfa-syntax

The most obvious syntax I can think of would be receiver~>fn~(). And just in general substituting ~> for any . property access.

@js-choi
Copy link
Collaborator

js-choi commented Oct 20, 2024

I agree that call-this syntax and PFA syntax are probably compatible with one another, as in receiver~>fn~().

As you probably know, PFA syntax has faced an uphill battle with the Committee, being seen as too niche for the a “heavy” solution like syntax. This proposal has also faced similar headwinds.

It would be cool if we could find a real-life codebase in which call-this syntax and PFA syntax would both be useful—i.e., “why would we want to be able to write receiver~>fn~()”.

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

2 participants