[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gwl-devel] variable interpolation in code snippets
From: |
zimoun |
Subject: |
Re: [gwl-devel] variable interpolation in code snippets |
Date: |
Tue, 26 Feb 2019 20:29:50 +0100 |
On Tue, 26 Feb 2019 at 20:05, Ricardo Wurmus <address@hidden> wrote:
>
> Yes, I think this is pretty nice. I’ll aim for something like this:
>
> --8<---------------cut here---------------start------------->8---
> process: foo
> data-inputs
> named-list
> foo = 1
> bar = hello
> baz = world
> procedure # bash { cat {{data-inputs.foo}} {{data-inputs.bar}} }
> --8<---------------cut here---------------end--------------->8---
>
> Haven’t thought much about it, but “named-list” (or whatever the final
> name) would introduce a let binding or something.
Yes!
The "named-list" would be the name of the reader macro, right?
(joke: "named-list" is a better name than "xyz-list" ;-)
> (BTW: I don’t like that it’s called “data-inputs”. “inputs” is nicer and
> fits well to “outputs”.)
Agree.
It was on my list asking for (bikeshedding) changes. ;-)
>From my opinion, the change should be:
- inputs -> packages
- data-inputs -> inputs
- outputs -> outputs
Cheers
--
simon