From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Lam Newsgroups: gmane.lisp.guile.user Subject: Re: Unbound variable warning/exception Date: Sat, 19 Dec 2020 21:07:22 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7910"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: Massimiliano Gubinelli Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 19 14:07:53 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 1kqbxg-0001xO-Vd for guile-user@m.gmane-mx.org; Sat, 19 Dec 2020 14:07:52 +0100 Original-Received: from localhost ([::1]:56336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqbxf-00060O-MP for guile-user@m.gmane-mx.org; Sat, 19 Dec 2020 08:07:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqbxS-0005zz-AT for guile-user@gnu.org; Sat, 19 Dec 2020 08:07:38 -0500 Original-Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:33025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqbxQ-0000jr-BH for guile-user@gnu.org; Sat, 19 Dec 2020 08:07:38 -0500 Original-Received: by mail-pl1-x631.google.com with SMTP id b8so2936618plx.0 for ; Sat, 19 Dec 2020 05:07:35 -0800 (PST) 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=hGTAXbCIQ+w2PXu9kvKnw1lBf4F8fOi7sjHEVELp08o=; b=OOoPPrtOVlR4ABlAJgOy4tpFd1F34VWLFqvK2N15iz0RwWw+GiImBjpz3UAt7KYzZS 3Jb4f+tXIJO8Ywc+zfRtL8sjBQKQ1daOw1uNRWgocwuekHWy2NzV3RHBx0wGQhxQJWl5 PMiMOLZQnHiXE09Z/iBr1Pww4juZdjMUh7VXtc/eVYrUCVadgPXVjdpRPBTvmgx6YsXS Rk8sXfJfytzekQznW9aqkPcO06QZIJP+dlCiaBwJNzwE+TwnI0BsILMkytT4SGh14LxC cOe94EwEaXEXNHBAgZydYuw2Tn68mkZfG4eHQzwZTSEtZEjpOsj5CQFvxvozfzvAjrr1 S3TA== 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=hGTAXbCIQ+w2PXu9kvKnw1lBf4F8fOi7sjHEVELp08o=; b=j9CFhH5RIwp62WPpOVMxlsAzPn9J7j654khNl/jhMMIXlw2HEfKkYppsyzBo/NOWmL gx720HDH+cjvh+nDE/SyjVEO5QyQKtPMui0bx55gkFedSfXJazwcZQRgRkOTL5c0cQRI 4rQSk1I3PIXIOSZczNt70fDeOpKtgw7kURFl+rw4gFnd8STWEgO02fe4cbZjBD8T+z1H wD5sDci9X/NYnczpL6OLdlPw8mcYYrN2qdloL5P4FC2kQzDRWEi/JUWfP/i71YdoLoDF NHJPBiSc91HYLb0uNbFE0dwOsssp0tqz1SbUpPIKceMGccqAi8RUvAUX7PrQfRsFskZp AGhg== X-Gm-Message-State: AOAM533TLTeYFo5GwL5nUrS83bkZWw5B5EQOdR1/AkywatV/5xViV3Pb zK1gFhTmmC0eYc8QKdJDits4uu6BQBw8hfz5/ZY= X-Google-Smtp-Source: ABdhPJxN+orRK+9zq/N+UtuIBiFJW19mI5kcBfaP6Nk9fGaCsLY6VsuY0BTttJIOIzjAamIp4+kObbDtas6bUhXSU3g= X-Received: by 2002:a17:902:8c84:b029:dc:20bc:2812 with SMTP id t4-20020a1709028c84b02900dc20bc2812mr8769438plo.66.1608383254760; Sat, 19 Dec 2020 05:07:34 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=christopher.lck@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, 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-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:17088 Archived-At: You can remove these "possibly unbound variable" warning by using modules appropriately. It's not easy and tedious but necessary to achieve better module hygiene. See changes in https://github.com/Gnucash/gnucash/pull/831 On Sat, 19 Dec 2020, 6:08 pm Massimiliano Gubinelli, wrote: > Hi all, > > nice piece of code! > > About these "possible unbounded variable" warnings, I have for GNU TeXmac= s > the opposite need: how can I turn them off? :) > > I was also curious to ask: which are currently the major applications of > GNU Guile (as extension language)? For example, in TeXmacs we have ~110.0= 00 > lines of scheme (still Guile 1.8). I wanted to give a look around to > understand what are good design patterns to use Guile 2+ as extension > language. > > Best, > Massimiliano > > > On 19. Dec 2020, at 02:46, Aleix Conchillo Flaqu=C3=A9 > wrote: > > > > On Fri, Dec 18, 2020 at 5:26 PM Christopher Lam > > wrote: > >> > >> Hi guilers, I saw in guix the incredibly useful unbound-variable > exception > >> printer written by Ludovic. I've adapted for use in gnucash as > >> https://github.com/Gnucash/gnucash/commit/6f951784 -- there are now in > >> guile 3.0.4 many more unbound-var warnings than in 3.0.2 -- wouldn't i= t > be > >> a useful hint to add to the warning in core guile as well? > > > > Wow, this is great! > > > > This should definitely be added to guile by default. > > > > Aleix > > > >