Skip to content

remove match from the standard library - #8625

Merged
sholderbach merged 2 commits into
nushell:mainfrom
amtoine:refactor/stdlib/remove-match-which-is-a-builtin-now
Mar 26, 2023
Merged

sholderbach merged 2 commits into
nushell:mainfrom
amtoine:refactor/stdlib/remove-match-which-is-a-builtin-now

Conversation

@amtoine

@amtoine amtoine commented Mar 26, 2023

Copy link
Copy Markdown
Member

Should close #8616.
Related to #8590.

Description

With the new builtin match command introduced in the rust source in #8590, there is no need to have a custom match in the standard library.
This PR removes the match command from std.nu and the associated test.

User-Facing Changes

Users can not access match from std.nu.

Tests + Formatting

nu crates/nu-utils/standard_library/tests.nu  --path crates/nu-utils/standard_library/ out+err> /dev/null; ($env.LAST_EXIT_CODE == 0)

gives true

After Submitting

$nothing

@amtoine amtoine mentioned this pull request Mar 26, 2023
4 of 7 tasks
@sholderbach
sholderbach merged commit 05f1b41 into nushell:main Mar 26, 2023
@amtoine
amtoine deleted the refactor/stdlib/remove-match-which-is-a-builtin-now branch March 26, 2023 09:10
@fdncred fdncred added the A:std-library Defining and improving the standard library written in Nu label Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:std-library Defining and improving the standard library written in Nu

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove match from std.nu

3 participants