From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:48403) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heJNQ-0001hi-2n for gwl-devel@gnu.org; Fri, 21 Jun 2019 09:14:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1heJNM-0007JB-Nj for gwl-devel@gnu.org; Fri, 21 Jun 2019 09:14:47 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1heJNL-0007A9-KA for gwl-devel@gnu.org; Fri, 21 Jun 2019 09:14:44 -0400 From: Ricardo Wurmus Date: Fri, 21 Jun 2019 15:14:18 +0200 Message-ID: <87k1dft711.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: what colour should the bikeshed have? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gwl-devel-bounces+kyle=kyleam.com@gnu.org Sender: "gwl-devel" To: gwl-devel@gnu.org Hello there, recently we changed some field names (=E2=80=9Cpackage-inputs=E2= =80=9D and =E2=80=9Cdata-inputs=E2=80=9D) and I thought that maybe we should talk abou= t the =E2=80=9Cprocedure=E2=80=9D field. Currently, a process might look like this: process: greet packages "hello" procedure '(system "hello") Or like this: process: sleep packages "coreutils" procedure # bash { echo "Sleeping..." sleep 10 } I think =E2=80=9Cprocedure # bash {=E2=80=9D is a bit long for a very commo= n use case. Since =E2=80=9C# bash {=E2=80=A6}=E2=80=9D is special syntax implemented wi= th a reader macro I=E2=80=99m not sure if or how we can do better. I think we might be able to do this: process: sleep packages "coreutils" # bash { echo "Sleeping..." sleep 10 } =E2=80=A6if we somehow rewrote the reader macro to expand to the full field definition, or if we changed the =E2=80=9Cprocess:=E2=80=9D macro to expect= a bare code snippet at the end without the need for a field assignment, though this would not be possible (or too ugly) in plain Scheme. But even if we can=E2=80=99t do that, maybe we could just replace the very long =E2=80=9Cprocedure=E2=80=9D with the much shorter =E2=80=9Cru= n=E2=80=9D: process: sleep packages "coreutils" run # bash { echo "Sleeping..." sleep 10 } Obviously, this would work fine in plain Scheme. What do you think? Is it worth trying / doing? -- Ricardo