From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kB/9OVQMW2GWUgAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 16:14:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cNarNVQMW2FeLAAA1q6Kng (envelope-from ) for ; Mon, 04 Oct 2021 14:14:44 +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 81C1B2D6BA for ; Mon, 4 Oct 2021 16:14:44 +0200 (CEST) Received: from localhost ([::1]:35866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXOjr-0000LL-Ln for larch@yhetil.org; Mon, 04 Oct 2021 10:14:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXOaU-0003DY-5z for guix-patches@gnu.org; Mon, 04 Oct 2021 10:05:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXOaT-0004hT-SO for guix-patches@gnu.org; Mon, 04 Oct 2021 10:05:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXOaT-0004rn-NU for guix-patches@gnu.org; Mon, 04 Oct 2021 10:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50967] [PATCH 00/12] Move (gnu home-services XYZ) to (gnu services XYZ) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Oct 2021 14:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50967 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Xinglu Chen Cc: Oleg Pykhalov , 50967@debbugs.gnu.org Received: via spool by 50967-submit@debbugs.gnu.org id=B50967.163335625318628 (code B ref 50967); Mon, 04 Oct 2021 14:05:01 +0000 Received: (at 50967) by debbugs.gnu.org; 4 Oct 2021 14:04:13 +0000 Received: from localhost ([127.0.0.1]:37971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOZh-0004qO-9C for submit@debbugs.gnu.org; Mon, 04 Oct 2021 10:04:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOZg-0004q5-4M for 50967@debbugs.gnu.org; Mon, 04 Oct 2021 10:04:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55012) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXOZa-0003yN-Bw; Mon, 04 Oct 2021 10:04:06 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60554 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXOZa-0003Dk-0g; Mon, 04 Oct 2021 10:04:06 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211002163834.29583-1-go.wigust@gmail.com> <20211002163834.29583-13-go.wigust@gmail.com> <87pmsnnukj.fsf@yoctocell.xyz> Date: Mon, 04 Oct 2021 16:04:04 +0200 In-Reply-To: <87pmsnnukj.fsf@yoctocell.xyz> (Xinglu Chen's message of "Sat, 02 Oct 2021 20:35:40 +0200") Message-ID: <878rz8q42z.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633356884; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=3ME2ATb8RZwDTvWPEqNOA3bflML5aCuKcL7nrgvegCI=; b=OBC8eb0CCUV+oZzbdl3qzm3yVH25rs8lwIQHtQMvXRyRoRGyDNN0hWKIQcoMX0A3C0r6Lz rhLH1Tyr5u/ieA5rYb6R1tmRbfgdqFJ4C6UMD4akT072WWQ565rfTmJMpgfpo7Aevh1scv X/qfb6lKPyMETyi+Ut9MwNw+w+N8SdWV9zdVyDYJMRUD97RUlvUIauTqyWKusyxWSktm8Q 45qq4SRT4IsOkpiw2AI+gRbTm0x71Ty0QUiwRe1cfmiGcz6Nm6xVN/sPJqMYuxV8Z1+Aaw t+8BLgSPv/1lby8lWixo+5o11mps9OY1SVbRTZFZaw0uyABXJ+mPeOp/R97fCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633356884; a=rsa-sha256; cv=none; b=eydnfjo2i94vs6A7VBOyqE4bARXU0lLpQp/G3s2lSDQiDUFyopW9e/JBg1daJKxncYw9jr zLKOHL0ORzAc+ZCm7zCjo7/soEt0mwifBDy+Mleg0H9SSgbh7leX+VxJEV1GDGXaTEhIJb NNvNu5g4Y+DSbeEFiE6Cymd6tTfq0PdOozqTLHoVxEx2kQXvfvxCKtnQ2SeOMFUTeEDwnd ktzN9i3IPH3IBMjOsIvlzO1PUCGApQpndz6m5owJhMGVWrnMWYQgloNlT8ZB6utIGDmYZB XYDvgXp0Deq9Ifn2UzDAH6kXgdlD9ZSY7ZmqAxEOEB2KQg09kc+NCy/mKkkwlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 81C1B2D6BA X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: QWcUhmSf5Uos Xinglu Chen skribis: > On Sat, Oct 02 2021, Oleg Pykhalov wrote: > >> * gnu/home/services/configuration.scm (interpose): Include content of fi= les. >> (string-or-gexp?): Rename to 'file-or-string-or-gexp?' and check for fil= e-like >> object. > > I would call it =E2=80=98file-like-or-string-or-gexp?=E2=80=99, just =E2= =80=98files=E2=80=99 doesn=E2=80=99t > really make it clear that it should be a =E2=80=9Cfile-like object=E2=80= =9D. As a matter of API, I would make it monomorphic: accept a file-like object, period. This is what=E2=80=99s done for System services (and polymorphic APIs are rare in general in Guix). =E2=80=98plain-file=E2=80=99 and =E2=80=98scheme-file=E2=80=99 allow users = to =E2=80=9Cconvert=E2=80=9D a string or a gexp into a file-like object. WDYT? Ludo=E2=80=99.