Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart utilities? #126

Open
mmontone opened this issue Apr 5, 2022 · 1 comment
Open

Restart utilities? #126

mmontone opened this issue Apr 5, 2022 · 1 comment

Comments

@mmontone
Copy link

mmontone commented Apr 5, 2022

SWANK implements this, but doesn't export:

(defun call-with-retry-restart (msg thunk)
  (loop (with-simple-restart (retry "~a" msg)
          (return (funcall thunk)))))

(defmacro with-retry-restart ((&key (msg "Retry.")) &body body)
  (check-type msg string)
  `(call-with-retry-restart ,msg (lambda () ,@body)))

Would you be interested in including those utilities in Serapeum?
There may be other restart utilities that could be worth including ...

@ruricolist
Copy link
Owner

Those look promising, I'm interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants