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

[FEATURE] Match Statement #10

Open
BigBadE opened this issue Oct 25, 2023 · 1 comment
Open

[FEATURE] Match Statement #10

BigBadE opened this issue Oct 25, 2023 · 1 comment
Assignees

Comments

@BigBadE
Copy link
Owner

BigBadE commented Oct 25, 2023

Describe Your Feature
Add a match statement, which matches a given value against different possible values using the match trait.

Provide a Code Snippet Using Your Feature

fn test() {
    match 3 {
        1 => return false;
        2 => return false;
        3..=10 => return true;
    }
}

Prerequisites
The match trait: #9

Additional Information
Look at how for-loops call the Iter trait from inside them to figure out how to implement this.

@BigBadE BigBadE added this to Sprint 2 Oct 25, 2023
@BigBadE BigBadE moved this to Easy in Sprint 2 Oct 25, 2023
@BigBadE BigBadE moved this from Easy to Medium in Sprint 2 Oct 25, 2023
@BigBadE BigBadE added this to Sprint 4 Nov 2, 2023
@BigBadE BigBadE moved this to Medium in Sprint 4 Nov 2, 2023
@a11155
Copy link
Contributor

a11155 commented Nov 3, 2023

I will try to do this one

@BigBadE BigBadE assigned BigBadE and a11155 and unassigned BigBadE Nov 4, 2023
@BigBadE BigBadE moved this to Medium in Raven Open Issues Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Medium
Status: Medium
Status: Medium
Development

No branches or pull requests

2 participants