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.

By signing up, you agree to Educative's Terms of Service and Privacy Policy