News for hackers. Stuff that matters.
Re:On the uses and misuses of panics in Go by andreareina on Thursday August 09, 2018 @06:55AM (#17723083)
I really dig the common lisp condition/restart system, where the callee defines different ways to recover from a failure, and the caller chooses which applies; or the caller can do their own thing with `unwind-protect`.
Re:On the uses and misuses of panics in Go by taeric on Thursday August 09, 2018 @02:08PM (#17726781)
The condition/restart system truly is close to magical. I've never used a system that was built on them, though. :(

I think the problem is that it really is geared to empower the operator of the system. That is, it is seen as where you give the operator of the system a chance to choose what to do next. Much of the code I write is assuming the operator can start things, and that is about it. They are not sitting at a terminal waiting to make a decision about something. Too many transactions happening for that to be even remotely feasible.