• 0 Posts
  • 112 Comments
Joined 1 year ago
cake
Cake day: August 5th, 2023

help-circle



















  • It’s a great and probably the best error system I’ve seen, instead of just throwing errors and having bulky try catch statements and such there’s just a result type.

    Say you have a function that returns a boolean in which something could error, the function would return a Result<bool, Error> and that’s it. Calling the function you can choose to do anything you want with that possible Error, including ignoring it or logging or anything you could want.

    It’s extremely simple.