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 error handling from expression evaluation exercise #2517

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

randomPoison
Copy link
Collaborator

@randomPoison randomPoison commented Dec 14, 2024

I think it would be good to simplify the expression evaluation exercise by removing the error handling around the divide-by-zero case. I think it overcomplicates the exercise and and adds confusion since at this point we haven't introduced Result (or at least not in any detail). This allows the students to just focus on writing the pattern matches on Expression and Op, and allows the exercise to be shorter (and I think we need to free up some time where we can, my classes often run long and cut into how much time students have for exercises).

Copy link
Collaborator

@djmitche djmitche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes a lot of sense -- thanks!

@djmitche djmitche merged commit 2bae363 into main Dec 16, 2024
37 checks passed
@djmitche djmitche deleted the legare/expression-ex-remove-result branch December 16, 2024 21:36
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

Successfully merging this pull request may close these issues.

2 participants