From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aHuwKl+/VWOPmwAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 00:25:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uJDNKl+/VWMLOAEAauVa8A (envelope-from ) for ; Mon, 24 Oct 2022 00:25:35 +0200 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 4B076172AD for ; Mon, 24 Oct 2022 00:25:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omgXQ-0000Ur-4H for larch@yhetil.org; Sun, 23 Oct 2022 15:21:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omFHm-0003ZO-5t for help-guix@gnu.org; Sat, 22 Oct 2022 10:15:38 -0400 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omFHh-0001mv-C7 for help-guix@gnu.org; Sat, 22 Oct 2022 10:15:37 -0400 Received: by mail-qt1-x82d.google.com with SMTP id hh9so3286762qtb.13 for ; Sat, 22 Oct 2022 07:15:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=s+OaY1eXrpU2gQ2EDgs5SwFpiEQg/ipMRqEomJkZKqk=; b=OPrcQzap4ddMq3mpX/e3NaLbNKqC4FPfs976p1tLNmCGJyymTM0E58snXeqsGrMJJG mBA7R/V6r+W7KCAQQuLDmSUwyn9GKhtznua8G2epa1r+8strO8IfCOzX5RaoJRyA+Gz1 mvF9b0LBE1ggM89jKMKtm1uQAaskYtAQy2WSHlLHbz0wWNej6O20XeMrCMZajjNKRJjt 6gsE8eixUnGN6hEkZXtvixrOYNQTiFJPQAb54FbuQX/b/zaGXQpNwc3M4AGhQCy2m9gI b7PpQl9d5oI5yRIN8pvSEoY6vuJ/zQHNnVoh8VqBpkcxx/L/q7iA6toYzpJsSaUaT8vJ 7IcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=s+OaY1eXrpU2gQ2EDgs5SwFpiEQg/ipMRqEomJkZKqk=; b=D4l8ecOwcuLz3r7EHjWoJk3XH1j2k+4w+WQNeqowWjITH35RNicOER6myHDhhmzAPx KyODXK4FtYSSiIo+kOIg5EYqjdXwfXITKD82Mu4u9oR6f60qv0/D8uezVUflZl+UN/E0 Z9Z7FryVa0c6KdKMR22Af7zlB2ppnjhBlIJElFR+MaViNEbw8vGdTBCjYmklMZa/VI+U AOW8H+o0TR1ClV1ASG8KrMCHqpBKBlvFbe2mEqyhr480l2X7NDCeeo48+EAlnsLITgO1 f4AulYbgK7HAzuLhYz5xIvFzRzi33SvNVWEqVmnEKVkBaFRa3IOwbUgUZS5SFkhS25uq JNQw== X-Gm-Message-State: ACrzQf0XEwNk7KM36eVZ5PNvJeweiVz4C9itMcVxkGnH2X1jGPreg+7V 9lOHIm2HxtoHFg/tkb0r1jQ6zxlNOFA= X-Google-Smtp-Source: AMsMyM78EEgZd9zO/Srxhp+EULiq2Kgni6QhFC77LyPMEQfIrKCZvaWo7lq5GpSmqZRDGDfekXoCFA== X-Received: by 2002:a05:622a:130f:b0:39c:da70:ea13 with SMTP id v15-20020a05622a130f00b0039cda70ea13mr21039035qtk.69.1666448131774; Sat, 22 Oct 2022 07:15:31 -0700 (PDT) Received: from hurd (dsl-141-173.b2b2c.ca. [66.158.141.173]) by smtp.gmail.com with ESMTPSA id c1-20020ac87d81000000b0039a8b075248sm9959309qtd.14.2022.10.22.07.15.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 07:15:31 -0700 (PDT) From: Maxim Cournoyer To: jgart Cc: Guix Help Subject: Re: When do you re-export? References: <20221011162848.GB19896@dismail.de> Date: Sat, 22 Oct 2022 10:15:29 -0400 In-Reply-To: <20221011162848.GB19896@dismail.de> (jgart@dismail.de's message of "Tue, 11 Oct 2022 16:28:48 -0500") Message-ID: <87fsfgt05a.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82d.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, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666563935; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=s+OaY1eXrpU2gQ2EDgs5SwFpiEQg/ipMRqEomJkZKqk=; b=I6ptzekQxA4xWddVqFvrOufq2LdHbDuGwyHBK8f3M0VqKyNrgHeM4z1HvF67nvC7yQZnrG AXiqBETMqPPiVCXgJFgcEfSKB7x+nLN8/WTNTyHM/epBodnIr781vYHDKD0DsFmH1z7aWe u/W/qdM3gcPJT7Q2YmeI0+/3NiBkqDjjmoEleUqYxV/58ZKz85gc7ZbeYRV5KmV19P6/JX LtCZZh4VKR9YHNTEe/Uyz/wslD26o7LIN55qoVTXty+2g/CVTDz6qOffaKI8jsGLIMFxUd KiquvuvrPgI60Nv41LzFz3YF138p8Y1aaRiTfbOHGQ3IF+kmfwJwtPcJGMEnFQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666563935; a=rsa-sha256; cv=none; b=mr9ppfuC1nwE++fkwqgtvKLsmnzD4K9/bCo0n7PxiPxS6sHsDs1C1cqArJoJnaJ3yh1Guo ttpzyLWI1LadttNfeDyNaJRV8pIPsEwGtZ/+N/7qG/D8M0evpjXIaR1W9h1zO9EctsSM0N bP/HCLe6jxnPdBzWRqnxfbnZ+CQYKaJQ9V1BvOb8VDGWptnUltFJYSrK2xzDmn2pevx8Tr osbu/Lr9HGgoNbCp89h7K6OjCt5PRoDBQSZLHpOMJrZzYTBVAv8K3Tczat/F7FXcO9HEO7 zsGRa6RnsKRYyTCFQJGRzODOeIv0HDFsP3x0/UnpurcF1nneOMavAqsZSBO1AQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OPrcQzap; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OPrcQzap; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4B076172AD X-Spam-Score: -0.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: qpqoeCg+7m6Q Hi jgart, jgart writes: > Hi, > > When should I re-export something in a module? > > docs say the following: > > Add all variables (which must be symbols or pairs of symbols) to the > list of re-exported bindings of the current module. Pairs of symbols > are handled as in export. Re-exported bindings must be imported by the > current module from some other module. > > The docs don't explain why you would want to even do a re-export in the first place... I've used in two places, I think: 1. Move code around while preserving backward compatibility. 2. For convenience (when people importing B would typically also want something from A). Best used very sparingly, or not at all, I'd say :-). -- Thanks, Maxim