Errors in main
Quite a while ago, we mentioned that main
can return a few things besides unit ()
. Now that we’ve learned about Result
, it’s about time we demonstrated that. Behold, our error-inducing main
function!
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy