[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Missing" libraries/concepts found in other languages/ecosystems?
From: |
Stefan Israelsson Tampe |
Subject: |
Re: "Missing" libraries/concepts found in other languages/ecosystems? |
Date: |
Sat, 11 Jul 2020 15:45:16 +0200 |
Intersting discussion, thanks. Was able to fix a bug thanks to you.
On Sat, Jul 11, 2020 at 12:14 PM Chris Vine <vine35792468@gmail.com> wrote:
> On Sat, 11 Jul 2020 02:34:22 +0200
> Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> wrote:
> > The comments about exception handling also reminded me of the following
> > blog post:
> >
> > https://blog.sulami.xyz/posts/common-lisp-restarts/
> >
> > Pretty cool concept as well.
> >
> > If there anything like it in Guile or is something like it possible
> > (probably, right?)?
>
> I think common lisp restarts are by and large useless. They rely on
> the assumption that the caller of a procedure which throws knows better
> how to handle an exception arising in that procedure than the procedure
> itself. That is rarely the case. Usually the code at the site of the
> error should do what it can to remedy the problem and then (if it cannot
> be fully rectified) throw an exception which unwinds the stack, for the
> exception to be picked up elsewhere.
>
> That is how most exception systems work. Scheme's continuable
> exceptions are analogous to restarts (albeit only having the exception
> site as their destination) and suffer from the same problem in my
> view. The only place I have seen restarts used in action are in
> building REPLs.
>
>
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, (continued)
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Leo Butler, 2020/07/09
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Aleix Conchillo Flaqué, 2020/07/10
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Catonano, 2020/07/10
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Chris Vine, 2020/07/10
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Catonano, 2020/07/10
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Zelphir Kaltstahl, 2020/07/10
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Zelphir Kaltstahl, 2020/07/10
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Chris Vine, 2020/07/11
- Re: "Missing" libraries/concepts found in other languages/ecosystems?,
Stefan Israelsson Tampe <=
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Linus Björnstam, 2020/07/11
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Chris Vine, 2020/07/11
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, John Cowan, 2020/07/11
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Chris Vine, 2020/07/11
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, John Cowan, 2020/07/11
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Chris Vine, 2020/07/11
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, John Cowan, 2020/07/11
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Chris Vine, 2020/07/12
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Chris Vine, 2020/07/13
- Re: "Missing" libraries/concepts found in other languages/ecosystems?, Catonano, 2020/07/12