Re:A new approach to error handling
by mmaniac on Tuesday July 30, 2024 @02:29PM
(#41112521)
Essentially the same as continuation passing style with a choice of continuation to return with.
[ Parent
| on HN ]
Re:A new approach to error handling
by convolvatron on Tuesday July 30, 2024 @03:05PM
(#41112967)
I'm a CPS person, so I always struggle to understand why this answer isn't the default. sugaring would be
a) a second implicit argument for the error return
b) an error() exit to go along with return()
c) a call-with-handler() to override the default of passing your handler to your child
that...looks alot like exceptions