Re:You’re better off using Exceptions
by majewsky on Monday February 03, 2020 @01:29PM
(#22227282)
Then you fill in a complex form with 6 object references, and the framework just spits out "NOT FOUND", which means "have fun figuring out which one is the missing object".
[ Parent
| on HN ]
Re:You’re better off using Exceptions
by joshuamorton on Monday February 03, 2020 @01:59PM
(#22227616)
`raise MissingField(field_name)` solves this problem.
Re:You’re better off using Exceptions
by ravenstine on Monday February 03, 2020 @02:01PM
(#22227633)
At which point you end up doing the same work you would have had to do in the first place, except with extra lines for exception handling. ;)