Skip to content

Proposal: switch-expression support#9604

Closed
koblas wants to merge 2 commits intobabel:masterfrom
koblas:master
Closed

Proposal: switch-expression support#9604
koblas wants to merge 2 commits intobabel:masterfrom
koblas:master

Conversation

@koblas
Copy link
Copy Markdown

@koblas koblas commented Feb 27, 2019

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

@haltcase
Copy link
Copy Markdown
Contributor

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
Copy link
Copy Markdown
Author

koblas 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
Copy link
Copy Markdown
Member

nicolo-ribaudo 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.

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants