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

Proposal: switch-expression support #9604

Closed
wants to merge 2 commits into from

Conversation

Projects
None yet
3 participants
@koblas
Copy link

commented Feb 27, 2019

This is a pull request to add support for switch expressions #9603 please see the issue for more details.

@citycide

This comment has been minimized.

Copy link
Contributor

commented Feb 27, 2019

This is great and all but this will never be merged without an official proposal to TC39 (as much as I want a pattern matching expression 😆), as @nicolo-ribaudo pointed out in the linked issue.

#9603 (comment)

@koblas

This comment has been minimized.

Copy link
Author

commented Feb 27, 2019

I've been working on a TC39 proposal in parallel to this PR. I wanted to provide a clear place to have an implementation where people could add some comments as needed.

When I look back at the pattern matching PR list, I see they did at least 3 PRs over time.

Is their a rule for babel TC39 proposals that they will only be consider if they're at least stage 1?

@nicolo-ribaudo

This comment has been minimized.

Copy link
Member

commented Feb 27, 2019

Generally we give precedence to proposals which are in higher stages, but the only real requirement is that it is at least stage 1.

I'm closing this PR for now, but we can talk about it again when there is an official proposal considered by TC39.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.