3 ms·
Common Lisp has a system of Conditions and Restarts which can do this and more. The link below describes an example of handling errors which arise when reading
by nemoniac 4y ago
Common Lisp has a system of Conditions and Restarts which can do this and more.
The link below describes an example of handling errors which arise when reading a collection of files line by line.
https://gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html https://gigamonkeys.com/book/beyond-exception-handling-condi...
- phoe-krk 4y agoNo, you don't even need the condition system to break out of nested iteration. (loop named loop-a do (loop named loop-b do (loop named loop-c do (return-from loop-b))) (return-from loop-a 42)) Under the hood, this uses CL:BLOCK; you can also use it yourself to mark where you want to be able to return from within the lexical scope of your code.