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

Remove Value::MatchPattern #11356

Merged
merged 1 commit into from Dec 17, 2023
Merged

Conversation

IanManske
Copy link
Member

@IanManske IanManske commented Dec 17, 2023

Description

Value::MatchPattern implies that MatchPatterns are first-class values. This PR removes this case, and commands must now instead use Expr::MatchPattern to extract MatchPatterns just like how the match command does using Expr::MatchBlock.

User-Facing Changes

Breaking API change for nu_protocol crate.

@sophiajt sophiajt merged commit c9c93f5 into nushell:main Dec 17, 2023
19 checks passed
@amtoine amtoine added the pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes label Dec 20, 2023
sholderbach pushed a commit that referenced this pull request Dec 20, 2023
# Description
Following from #11356, it looks like `Expr::MatchPattern` is no longer
used in any way. This PR removes `Expr::MatchPattern` alongside
`Type::MatchPattern` and `SyntaxShape::MatchPattern`.

# User-Facing Changes
Breaking API change for `nu_protocol`.
@IanManske IanManske deleted the remove-value-match-pattern branch December 22, 2023 04:05
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
# Description
`Value::MatchPattern` implies that `MatchPattern`s are first-class
values. This PR removes this case, and commands must now instead use
`Expr::MatchPattern` to extract `MatchPattern`s just like how the
`match` command does using `Expr::MatchBlock`.

# User-Facing Changes
Breaking API change for `nu_protocol` crate.
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
# Description
Following from nushell#11356, it looks like `Expr::MatchPattern` is no longer
used in any way. This PR removes `Expr::MatchPattern` alongside
`Type::MatchPattern` and `SyntaxShape::MatchPattern`.

# User-Facing Changes
Breaking API change for `nu_protocol`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants