From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iEXkJSrcjl8qWgAA0tVLHw (envelope-from ) for ; Tue, 20 Oct 2020 12:46:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oPR2ISrcjl9KeAAAB5/wlQ (envelope-from ) for ; Tue, 20 Oct 2020 12:46:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 308FB940112 for ; Tue, 20 Oct 2020 12:46:34 +0000 (UTC) Received: from localhost ([::1]:47412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUr27-0000od-UU for larch@yhetil.org; Tue, 20 Oct 2020 08:46:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUr1m-0000oQ-QI for guix-devel@gnu.org; Tue, 20 Oct 2020 08:46:10 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:34177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUr1k-0003Y2-Jn; Tue, 20 Oct 2020 08:46:10 -0400 Received: by mail-qt1-x82c.google.com with SMTP id h12so1068582qtu.1; Tue, 20 Oct 2020 05:46:06 -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:content-transfer-encoding; bh=VIa/sJS6ox3Cgpd4naJT2fmIbQICHPtpXvvhWiscD3c=; b=iH99mUj02zJzpkDFD7WVJ9wD/27AfaF4hFkRba1s4KKNHwnnv5nAF4OtTQvr201RZq xh2eD09Pbf6B2PQKAqp3cUlS7js2ieJXUFfVjU21l4UXOc46FhMlOYnUr7OPPVXnI1F4 ByHM1vtqjOA0besz3B4IVonKF0AeKEqvPnEphKgzmLGvIHnohZO8mucVma3T/HVY31e7 Cn7OvFJmJZYtuT5Q55lbfRzeWZ2u5c8D2hpmXyHOwnjBwTXuQTz463Picpzz/w05l4Q6 1nKnSU13FJfgB1AvHj0D5godmok9Np1Z0s1dhpXFdWv+CyPxAIbUibE/XAKU3N0yjXi4 uOZw== 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:content-transfer-encoding; bh=VIa/sJS6ox3Cgpd4naJT2fmIbQICHPtpXvvhWiscD3c=; b=HbJalJKJMODhe7gujFWxt09iTxzrwQagRgFn3XBGEkKm2tdShjlHiYEctP4ytFvGi7 mFIaOWczGo1A+aKe8SuA+MEaL7mTLCrIHnuc/GO+Y85ZoV4sXdMXaLemh0rIbe09IbEz pEGUXPAz/QMgYMVD4r785Awu//btykGHpWIpCpAWQej4klKrP5T7FVWWn5MlWjBX0mhx 0mwsL3l71UptFSOtjrEhuQEB2wj6EvMgSlroHevcC3D3lnjUrZJ20dOEZQpncxt28qVW U7udjsD9SJNPf/ri+EzzKGMHiFsu2J3frCORyZZgSYV9CLXlLWNrJ60HZ5U+KrhpcZ6Z RVOQ== X-Gm-Message-State: AOAM5327kHL7LIuXwn9J8FfONpccbbusafFAAP+5OJb7RVJJTcWp/zOi HzA/lJvZhdM2dBKUy93kiO3UuCaX/t1z5BAuY6R7ZhHaRNw= X-Google-Smtp-Source: ABdhPJxjTI8/LWNXAu/E6vJYO0tZTq8j4rlazrVisEo3LBbark7jeqFAkBhGkbrArihwc2IbIp06QwaNwn4oU8+/w10= X-Received: by 2002:ac8:32e9:: with SMTP id a38mr2216067qtb.217.1603197965837; Tue, 20 Oct 2020 05:46:05 -0700 (PDT) MIME-Version: 1.0 References: <875z7a78ww.fsf@gnu.org> <20201020103244.GB6805@jurong> In-Reply-To: <20201020103244.GB6805@jurong> From: zimoun Date: Tue, 20 Oct 2020 14:45:54 +0200 Message-ID: Subject: Re: Using #true and #false everywhere? To: Andreas Enge Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=zimon.toutoune@gmail.com; helo=mail-qt1-x82c.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: -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, 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: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=iH99mUj0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: RUA1e6wTMJz5 Hi Andreas, On Tue, 20 Oct 2020 at 12:33, Andreas Enge wrote: > And since we are on the bikeshedding front, I feel like writing a second > message. You are playing the devil's lawyer role, right? > On Fri, Oct 16, 2020 at 12:38:23PM +0200, Ludovic Court=C3=A8s wrote: > - The "non-typedness of booleans": Does "(if 1 2 3)" raise an exception o= r > work, and if the latter is true, what is the result? And if I replace > "1" by "0" or the empty list? (In Guix, this is related to the question= : This is a question about the standard, right? It is not about #true or #false vs #t or #f. > Do I need to add #t or #f at the end of a phase, or is the value of its > last statement sufficient?) The question is how to know the value of the last statement. And it is Scheme/Guile question, right? Not really about the #true vs #t, isn't it? > - What are the different procedures for comparing things? The Guile manual explains well, isn't it? Cheers, simon ps: Well, one example showing all the points is, IMHO: --8<---------------cut here---------------start------------->8--- scheme@(guix-user)> (define (f x) (when (> x 2) #true)) scheme@(guix-user)> (map f '(1 2 3 4)) $1 =3D (# # #t #t) --8<---------------cut here---------------end--------------->8--- (whatever the comparison (> x 2) is; could be package related.)