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

Use check-handle draft syntax in gdu #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dundee
Copy link
Owner

@dundee dundee commented May 3, 2021

Some notes from the rewriting to check-handle syntax:

  • it removes a lot of boiler-plate code - the handling of errors is now almost a half
  • it's little bit harder to read and understand (mostly when explicit handler is used)
  • one has to think on every occasion if check can be used (because control cannot resume if check fails)

Both 2 and 3 are probably just matter of time. It's a new concept, brain has to adapt to it :)

The removal of unnecessary error handling code and thus more meaningful code in general are probably worth all the cons 👍

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.

1 participant