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

It's a little weird that the if/else exercise isn't solved with if/else #198

Open
illicitonion opened this issue Oct 31, 2024 · 0 comments

Comments

@illicitonion
Copy link
Contributor

I watched a novice programmer solving https://github.com/mainmatter/100-exercises-to-learn-rust/blob/main/exercises/02_basic_calculator/03_if_else/src/lib.rs and they got a little confused - they assumed because this was a lesson on if/else, that they were meant to use if/else in solving it.

The solutions branch has what I agree is the ideal solution to this problem: n % 2 == 0

I'd suggest we either re-title the section to remove "if/else" from the title (maybe "Branching and conditionals" or "Branching and comparisons" or something), or change the exercise so that it actually involves an if/else expression in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant