Reply to post: Re: mumbo jumbo

Turing Award winner Barbara Liskov on CLU and why programming is still cool

doublelayer Silver badge

Re: mumbo jumbo

"Error handling is definitely a concern. Especially when the entire stack from software to hardware works on exceptions, which may leave undefined state left and right."

So you would prefer what, precisely? Exceptions are a lot less undefined than hoping the user remembers to check the return value every time for something indicating a deviation from the golden path. A function that calls a utility, checks that it returned correctly, and runs it with a different parameter if it receives a certain error is no different than one that catches an exception for the same result. It also means that, should my code be badly written and fail to catch the exception, it will either signal you in a way you can recover from anyway or at least you'll see what the problem is rather than dealing with my flawed attempt at recovery.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2022