[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: objections to short syntax for code snippets?
From: |
zimoun |
Subject: |
Re: objections to short syntax for code snippets? |
Date: |
Wed, 5 Feb 2020 15:40:54 +0100 |
Hi Ricardo,
On Tue, 4 Feb 2020 at 14:06, Ricardo Wurmus <address@hidden> 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