wanted: easy way to capture backtraces when unwinding from conditions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
HANDLER-CASE is more idiomatic, easier to use -- and often less troublesome than HANDLER-BIND for basic condition handling.
Esp.
(handler-case (with-mutex (m) (foo))
(error (e) (error e))
is an important modern idiom: don't want to hold on to the lock while handling the error. It however means that actual error context is lost.
I'm thinking we could have CONDITION-
This would be especially convenient for reporting errors from threads.
(Can you tell I've been living inside the JVM recently? Not being able to handle conditions without unwinding sucks, but exceptions carrying their backtraces with them is pretty nice.)
Changed in sbcl: | |
importance: | Undecided → Wishlist |