Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Defensive Programming: replacing assertions with exceptions #773
I propose to rewrite this episode using exceptions instead of assertions. For example, the first piece of code in that lesson would be:
If we choose different exceptions, remembering they were shown previously in 08-errors.md, we show how to present more meaningful errors, rather than always presenting an
Hi Alexandre, thank you for opening this issue. @maxim-belkin, @annefou, and I discussed this today. We are in agreement with you regarding it not being the best practice to use
I agree with you on that.
I will check the examples carefully and try to get back to you, OK?