From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.user Subject: Re: "Missing" libraries/concepts found in other languages/ecosystems? Date: Sat, 11 Jul 2020 15:45:16 +0200 Message-ID: References: <20200710112109.b2ffa630699452541835924b@gmail.com> <14a24bd8-2664-c7bf-eff8-ca3f4e068ef8@posteo.de> <20200711111400.a4f538669d375d5714cad3f1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29986"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: Chris Vine Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jul 11 15:46:03 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1juFpL-0007gJ-Mj for guile-user@m.gmane-mx.org; Sat, 11 Jul 2020 15:46:03 +0200 Original-Received: from localhost ([::1]:43768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juFpJ-0003Ae-Hg for guile-user@m.gmane-mx.org; Sat, 11 Jul 2020 09:46:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juFop-0003AL-IZ for guile-user@gnu.org; Sat, 11 Jul 2020 09:45:32 -0400 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:39216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1juFon-0007X1-Ux for guile-user@gnu.org; Sat, 11 Jul 2020 09:45:31 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id q5so8628962wru.6 for ; Sat, 11 Jul 2020 06:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=veer4SEwQhEbn5Zr6mWBS/UKrwVsivyhG3mcmmRYQUs=; b=nwVUOfaHH55QOZF8lKiV6M/6nahzKVXP1AOiCy1sTp5O/q4ev9cVmR1w0BDs02JgTA CNmXJ/Ak8oCUeV+AsCdlEm6BE408p6P5kZHA59HHmnhW/A8hwkNUnyDFm4hcUCSd4GNd VXgDgmxLdPQ2hHTh6cLIl/uJ7wNVXSNVGbRzvy9BMc92+CYAiDmK7LOlnQUy58rRmJyB ovncucnVOO9+ih8vblVM0bFJk4ZAxUQbAknEO7A2I5PTKKVsIxJwFMStNNj5jn1Vcz9c SXkC5rQkyliB6NSJ5a7+3ogZ3PCquRePGR9dZS+81toSEb/1dLDPH8C09jMWUxhY+bob uWzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=veer4SEwQhEbn5Zr6mWBS/UKrwVsivyhG3mcmmRYQUs=; b=dJZD+RGWC89uDJI+/reesFa8LFlkb6AxR/fB2uef4tILzETtD7pTlFx7KHpaiV9153 g+wgBbgRhO+mr9wMrhFnEWhUStY50sXSccktClz2/GE3hPXRFhw3bOONTT1l4e415MLE CMLkYPTyDLkIOhqsZ+9R0515M/uxyNwxUZeMhZZCeunioyLKeZ/N/fVU0HIB5lOCFuJg DQ01e6mEnqrJCSRys7VWiYozO2lr9O1VssW7CRMHX9d42dAvkSjqMXrsymv3tuMEnpbY XINTBkoqDcB2/xHi1tSixbP18nhOD5A34Jahkryq3OTxFifyvSfflTrjqOn0Zk8fH4er Uiqw== X-Gm-Message-State: AOAM53060j4zXSMTHyPWFoMvjJUlXFcQ7FM+v0IXZHeYdEprObyU+bEy gA4xG/qA81tAf5RDeWHoq6nHKBd9gfp3q+ZV/bo= X-Google-Smtp-Source: ABdhPJyo3nfbtPiH2z/zOBIXGjKoYajOpaL4j6zgSrUK+MfVRyjb0qnY9nDDj1MSe82yLJQnjPkn7sZhpN7JpzFRtQo= X-Received: by 2002:a05:6000:1143:: with SMTP id d3mr59699153wrx.235.1594475127629; Sat, 11 Jul 2020 06:45:27 -0700 (PDT) In-Reply-To: <20200711111400.a4f538669d375d5714cad3f1@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=stefan.itampe@gmail.com; helo=mail-wr1-x431.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16663 Archived-At: Intersting discussion, thanks. Was able to fix a bug thanks to you. On Sat, Jul 11, 2020 at 12:14 PM Chris Vine wrote: > On Sat, 11 Jul 2020 02:34:22 +0200 > Zelphir Kaltstahl 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. > >