Hacker News new | ask | show | jobs
by JodieBenitez 959 days ago
> You either have to live with it or create wrappers that catch errors and return them as values.

Some of us used to wrap php "errors" to convert them into exceptions. Then I switched to Python and was pleased to see the pointless distinction between errors and exceptions gone... not gonna go backwards on this.

1 comments

> Some of us used to wrap php "errors" to convert them into exceptions.

Did exactly that back in the day, this comparison is flawed: PHP errors (and warnings, notices) by default went completely outside the flow of the program, and converting them to exceptions was a means of forcing developers to deck with them right away, sometimes at all.