From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:60226) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izLrX-0008MG-En for gwl-devel@gnu.org; Wed, 05 Feb 2020 09:41:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izLrW-0001iX-Jv for gwl-devel@gnu.org; Wed, 05 Feb 2020 09:41:07 -0500 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:43846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izLrW-0001fu-G2 for gwl-devel@gnu.org; Wed, 05 Feb 2020 09:41:06 -0500 Received: by mail-qt1-x82d.google.com with SMTP id d18so1685529qtj.10 for ; Wed, 05 Feb 2020 06:41:06 -0800 (PST) MIME-Version: 1.0 References: <871rrasdsl.fsf@elephly.net> In-Reply-To: <871rrasdsl.fsf@elephly.net> From: zimoun Date: Wed, 5 Feb 2020 15:40:54 +0100 Message-ID: Subject: Re: objections to short syntax for code snippets? Content-Type: text/plain; charset="UTF-8" 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: Ricardo Wurmus Cc: gwl-devel@gnu.org Hi Ricardo, On Tue, 4 Feb 2020 at 14:06, Ricardo Wurmus wrote: > --8<---------------cut here---------------start------------->8--- > process run-sh > inputs > . "a" > . mine: "b" > . "c" > . yours: "d" > # { > echo "This is mine: {{inputs:mine}}, and this is yours: {{inputs:yours}}." > } > --8<---------------cut here---------------end--------------->8--- This is cool! Aside your question, I am thinking if WISP could be adapted to use dash '-' instead of dot '.' in the field 'inputs'. > --8<---------------cut here---------------start------------->8--- > process run-sh > inputs "hello" > #{ > function { > echo "I just want to say something." > } # this is not a comment Annoying but I can live with. :-) > } > --8<---------------cut here---------------end--------------->8--- > Anyway, do you have any objections to this optional syntax? Any No objections. Thank you for all the improvements. All the best, simon