From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Chris Vine Newsgroups: gmane.lisp.guile.user Subject: Re: "Missing" libraries/concepts found in other languages/ecosystems? Date: Tue, 14 Jul 2020 17:21:48 +0100 Message-ID: <20200714172148.38d6e8275d956e7e318dba6c@gmail.com> References: <20200710112109.b2ffa630699452541835924b@gmail.com> <14a24bd8-2664-c7bf-eff8-ca3f4e068ef8@posteo.de> <20200711111359.acacd7d4a6b328bab44ba11e@gmail.com> <20200712201423.191a4d33c25306bfb5506f77@gmail.com> <20200712203255.18174e62dc69bc71f722c213@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28055"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Jul 14 18:23:11 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 1jvNi1-0007BZ-TD for guile-user@m.gmane-mx.org; Tue, 14 Jul 2020 18:23:09 +0200 Original-Received: from localhost ([::1]:39216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvNi0-0000Ee-Tb for guile-user@m.gmane-mx.org; Tue, 14 Jul 2020 12:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvNgp-0007TY-MK for guile-user@gnu.org; Tue, 14 Jul 2020 12:21:55 -0400 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:42883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jvNgo-0002Cd-3W for guile-user@gnu.org; Tue, 14 Jul 2020 12:21:55 -0400 Original-Received: by mail-wr1-x42c.google.com with SMTP id o11so22928187wrv.9 for ; Tue, 14 Jul 2020 09:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=79uW9x5nuj8fd6wKbxVtVH0vMaoRirFwUSP/b/HyWGo=; b=IzachcE4a7569XE9quf43vqeh0tVjdfXIzGI/9hnOqGPl4CUw9VGVo7LXUA9+mAdXB H84kjpm3bvUOP3GhdIci3s/6kS/8lMcYRrU4M7n0Z4GKgTJiHmupXhX9ljQJ2BOEDBZt mjisxi7eeIOmrXlaEkF4JqzW61notpYnnCayUYJy26SxQRwF5mIkazY1fuymrjlrP7oG IGSKZHOcWj8QZPSzSzHHPGAJchGIMdCPqp3VmOUUhehJusofcDhbY1Qg5/63RvYv6jpu uza+pSQvZ47OTnGZLcAxrIExiEXQJ0gGnpv9vkZokkAQNqW2i8SPnljh56pdnAPMEChh lWyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=79uW9x5nuj8fd6wKbxVtVH0vMaoRirFwUSP/b/HyWGo=; b=Vs1axQyU1cIkwEFEQzDUCPwY3j6LAD2/NkgIiKQ1XFbLEDOkax2ntgKMbkgJ+3tQ0q GCQcSGJroMCIFfGT1kmLtqdTxDI+84Yzs0sjvKpkHT1FxZDTJoEj3BP0QfMFiCaPj0ue aKFUJTg9nqepS+ulSFPNC0IYv0bDLQIo4YjCG6glkHMFwsm0qfIBG5vyn81o5bAMTgeb tshAeRPp5ljoh1Q+IJUhXXgMnKOvAevOuFZ0XI0jHaCDbErUeCZ5fqAfbxLKanwA4V2v V3cRNy8YHFObvv8kRgd8g2HriEm+FXSJRLhh3pRKYs+mZSSTOVmKa/StwQ03Pdm5K5fF 9h3g== X-Gm-Message-State: AOAM5331/dp3Qyo+2A1zNkG97Hgi6Y7LmKSl8Djc9Rb3Dhc/HI04uobq mzVXSZupMdD92p2Cf+q6pJgX0By+ X-Google-Smtp-Source: ABdhPJzQURs6VTNejT2qPOURZ9GQWzg0toaOOafLgRbZaxXaFoUEXwUrnnMi1zVL59OogX4uyFplgQ== X-Received: by 2002:a5d:6452:: with SMTP id d18mr6674380wrw.284.1594743711759; Tue, 14 Jul 2020 09:21:51 -0700 (PDT) Original-Received: from bother.homenet ([2.24.141.94]) by smtp.gmail.com with ESMTPSA id z25sm4596621wmk.28.2020.07.14.09.21.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 09:21:49 -0700 (PDT) Original-Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (Postfix) with SMTP id A442F263288 for ; Tue, 14 Jul 2020 17:21:48 +0100 (BST) In-Reply-To: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=vine35792468@gmail.com; helo=mail-wr1-x42c.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: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:16686 Archived-At: On Tue, 14 Jul 2020 12:32:46 +0200 Catonano wrote: > Il giorno dom 12 lug 2020 alle ore 21:33 Chris Vine > ha scritto: > > On Sun, 12 Jul 2020 20:14:23 +0100 > > Chris Vine wrote: > > [snip] > > > Secondly, if the handler returns and #:unwind? is set to #f then > > > raise-continuable will return with the value returned by the handler. > > > So this: > > > > > > (with-exception-handler > > > (lambda (x) (+ x 3)) > > > (lambda () (+ (raise-continuable 10) 6))) > > > > Ah I see you are using (ice-9 exceptions). Better be consistent with this: > > > > (with-exception-handler > > (lambda (x) (+ x 3)) > > (lambda () (+ (raise-exception 10 #:continuable? #t) 6)))) > > I find this a little bit confusing, admittedly > > so is it > > #:unwind #f > > on with-exception-handler and > > #:continuable #t > > on raise exception ? If you want a continuable exception then you don't unwind. If you unwind there is no difference between a continuable exception and a non-continuable one - you have unwound the stack and that's it. If the exception is non-continuable (as most are), you must either unwind, or you must in the exception handler re-raise the exception or invoke your own continuation object.