Re:The Common Lisp Condition System – Upcoming Book
by lukashrb on Wednesday July 15, 2020 @09:59AM
(#23845293)
Does anyone know if it is possible to integrate such a system, as plugin, in clojure? Is there already a project like that?
[ Parent
| on HN ]
Re:The Common Lisp Condition System – Upcoming Book
by divs1210 on Wednesday July 15, 2020 @12:00PM
(#23847131)
Yes, there are multiple libraries, for example:
Re:The Common Lisp Condition System – Upcoming Book
by phoe-krk on Wednesday July 15, 2020 @12:06PM
(#23847226)
Thank you! I will include this in the book. How should I credit you?
Re:The Common Lisp Condition System – Upcoming Book
by divs1210 on Wednesday July 15, 2020 @01:20PM
(#23848332)
I am Divyansh Prakash - github.com/divs1210
The credit goes to the author of that library, though. :)
All the best for your book!
Re:The Common Lisp Condition System – Upcoming Book
by phoe-krk on Wednesday July 15, 2020 @01:22PM
(#23848371)
Thanks. It was you who directed me towards this implementation and made it possible for me to mention it in the book, though, so I only consider it fair if I also add you to the book's Hall of Fame.
Re:The Common Lisp Condition System – Upcoming Book
by nahuel0x on Wednesday July 15, 2020 @05:08PM
(#23851860)
for conditions in Clojure also check this: https://gist.github.com/msgodf/6f4e43c112b8e89eee3d
Re:The Common Lisp Condition System – Upcoming Book
by phoe-krk on Wednesday July 15, 2020 @05:10PM
(#23851893)
Thank you for the link. How should I credit you?
Re:The Common Lisp Condition System – Upcoming Book
by phoe-krk on Wednesday July 15, 2020 @10:03AM
(#23845341)
I haven't explored Clojure. If it allows one to customize the means in which errors are signaled (read: force the language to not immediately throw a Java exception on an error, and instead execute some code), then one should be able to implement both signaling and a debugger.
It might not be easy to tell Clojure or the JVM to not be trigger happy with throwing exceptions and therefore destroying the stack. Perhaps one will find a way through!