From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Massimiliano Gubinelli Newsgroups: gmane.lisp.guile.user Subject: Re: Unbound variable warning/exception Date: Sat, 19 Dec 2020 17:30:44 +0100 Message-ID: <0A09E55B-6199-4310-BE7E-B8309776CE52@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) 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="19909"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: Christopher Lam Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 19 17:31:01 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 1kqf8H-00056r-I6 for guile-user@m.gmane-mx.org; Sat, 19 Dec 2020 17:31:01 +0100 Original-Received: from localhost ([::1]:34496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqf8G-00045C-J7 for guile-user@m.gmane-mx.org; Sat, 19 Dec 2020 11:31:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqf85-000451-V3 for guile-user@gnu.org; Sat, 19 Dec 2020 11:30:49 -0500 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:55545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqf84-00027Z-7m for guile-user@gnu.org; Sat, 19 Dec 2020 11:30:49 -0500 Original-Received: by mail-wm1-x329.google.com with SMTP id x22so5698881wmc.5 for ; Sat, 19 Dec 2020 08:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=cMCg4ADxhegEh28cP1hZxpn16tC9GWa9Hx8QYNwBIBk=; b=lcos2f+dGJBa2bznRSFM+QYIrUXKTyZgBzXb6/tuMtKUXZjbrOYdzQB79E2gNh9cOv JT4lLqlPHtuCdfLpfUJ4U6KbWt9Nc/4xekY69/XyB02howftZI2diD+PBvxWfuvP31gL HoXqwEErUdYARQN1Lfy9zWVO8wQdLkVyzXPWJBB7G5OFR1ZGo7Mhr9PLvu3CMEXh0v3O J7OcEal4Y9QiD1PwLGsaPLzlxX+VuGezsL9EZZrtK609vGfNQqSceehhQwf8wPJfLY7m CVLz0vQuVKyuqVO5Ijo50BfBpsuh/vYBnqNUJrBpFIJA1rW7zHgK0mncC19qyCkJHta/ F6Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=cMCg4ADxhegEh28cP1hZxpn16tC9GWa9Hx8QYNwBIBk=; b=CjTIGeYjdFUo7iZx2+alzQm+JAVqtNNXj1qn3/re/c/ZYZaDeqiDScwAT1j/F9Ok4o MYQY+YGIx+j5h66bAxLs6P5U0CullJJJxepReAPM++F2TN6sJAGg+/BNe+5oNt1d3LYM 3+HtADUMXNN0Z4Ua0d9o+cWzP15b4jmK0RT0+eQ27Z81nrszoCExtzJZYJtmT8QAgKVx 0p0aT+l0p4/wLu+8dEVSaQ+v9eUf7c09UZQCj8qu7pNxpaSDyWMy5tcexft9JUzqzuF1 QWZrEGP5m3Ngh6uNwZrjJZCy9d+HO5rGwOBfjg4TGHbr0ZQUaeUqXg/wUcGYSTJzBFO8 JsAw== X-Gm-Message-State: AOAM5333ywu7Q7FIq3GsPTqMfmtUTOTIAhhIQgPveVDWa9kX3ISPd5aF 6YTTqgpbdAL5xvp3i+Ptg4U= X-Google-Smtp-Source: ABdhPJwg4wXUUqs5bqbXsov+yxXthP9NHmCwQ2/0s2X+gqvvuWs8FlG9Woa6d53tBrqPgTi06SVcSw== X-Received: by 2002:a7b:c397:: with SMTP id s23mr8739151wmj.63.1608395446761; Sat, 19 Dec 2020 08:30:46 -0800 (PST) Original-Received: from [192.168.0.10] ([78.192.22.137]) by smtp.gmail.com with ESMTPSA id x17sm18726095wro.40.2020.12.19.08.30.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Dec 2020 08:30:46 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=m.gubinelli@gmail.com; helo=mail-wm1-x329.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:17089 Archived-At: Thanks, there is indeed some interesting and useful code there.=20 However I would prefer not to make large changes in this moment. I = removed most of the warnings by proper use of modules but we still have = some circular dependencies among modules and these are sources of some = warning which for the moment I just want to silence. I think as long as = they are warnings there should be the option to suppress them. There is = no error in the code, but the current way circular module dependence in = guile is handled does not recognize it...=20 Best, Max > On 19. Dec 2020, at 14:07, Christopher Lam = wrote: >=20 > 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. >=20 > See changes in https://github.com/Gnucash/gnucash/pull/831 = > On Sat, 19 Dec 2020, 6:08 pm Massimiliano Gubinelli, = > wrote: > Hi all, >=20 > nice piece of code! >=20 > About these "possible unbounded variable" warnings, I have for GNU = TeXmacs the opposite need: how can I turn them off? :) >=20 > 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.000 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. >=20 > Best, > Massimiliano >=20 > > On 19. Dec 2020, at 02:46, Aleix Conchillo Flaqu=C3=A9 = > wrote: > >=20 > > On Fri, Dec 18, 2020 at 5:26 PM Christopher Lam > > > = wrote: > >>=20 > >> 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 it be > >> a useful hint to add to the warning in core guile as well? > >=20 > > Wow, this is great! > >=20 > > This should definitely be added to guile by default. > >=20 > > Aleix > >=20 >=20