From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:33253) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfXOL-0002RL-Jj for gwl-devel@gnu.org; Mon, 24 Jun 2019 18:24:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfXOJ-0001sW-Lh for gwl-devel@gnu.org; Mon, 24 Jun 2019 18:24:49 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21242) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hfXOF-0001mP-Pv for gwl-devel@gnu.org; Mon, 24 Jun 2019 18:24:45 -0400 References: <87k1dft711.fsf@elephly.net> From: Ricardo Wurmus In-reply-to: <87k1dft711.fsf@elephly.net> Date: Tue, 25 Jun 2019 00:24:34 +0200 Message-ID: <87y31qsjtp.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: 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 Ricardo Wurmus writes: > I think =E2=80=9Cprocedure # bash {=E2=80=9D is a bit long for a very com= mon use case. > Since =E2=80=9C# bash {=E2=80=A6}=E2=80=9D is special syntax implemented = with 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 > } This works now since commit da8e0308587d62a06169dacdc41e86519a1ffa54. Code snippets (either produced with the =E2=80=9C#=E2=80=9D syntax or witho= ut) are the only thing that can make use of this special rule at the moment. Plain S-expressions need to use =E2=80=9Cprocedure '(=E2=80=A6)=E2=80=9D, because= I don=E2=80=99t really want to match on =E2=80=9Cquote=E2=80=9D and =E2=80=9Cquasiquote=E2=80=9D at mac= ro expansion time. I didn=E2=80=99t implement special handling for G-expressions either, but t= hat=E2=80=99s possible in principle. I=E2=80=99ll rename =E2=80=9Cprocedure=E2=80=9D to =E2=80=9Crun=E2=80=9D ne= xt. -- Ricardo