From: zimoun <zimon.toutoune@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Roel Janssen <roel@gnu.org>, Kyle Meyer <kyle@kyleam.com>,
gwl-devel@gnu.org
Subject: Re: Comments on process template syntax
Date: Thu, 6 Feb 2020 12:59:36 +0100 [thread overview]
Message-ID: <CAJ3okZ2qdZrDY6JDmKPcyOxWxDNM53j0SmNj0xXJOPfvgFh9Kg@mail.gmail.com> (raw)
In-Reply-To: <874kw4ra7u.fsf@elephly.net>
Hi,
On Wed, 5 Feb 2020 at 22:33, Ricardo Wurmus <rekado@elephly.net> wrote:
> > Aside, the 'process' macro should be renamed as Kyle mentioned it.
> > Because it is confusing, IMHO.
>
> Yes, I’m considering a rename, but I’m not sure which is the best
> option. We could either have (1) “define-process” (for value +
> definition) and “process” (for just the value), or we could have (2)
> “process” (for value + definition) and “make-process” (for just the
> value).
Just to be sure to well understand.
Option 1.
define-process list-file-template (with filename)
will expand to:
(define-public list-file-template
(lambda (filename)
(process
...)))
and option 2.
process list-file-template (with filename)
will expand to:
(define-public list-file-template
(lambda (filename)
(make-process
...)))
Right?
> I’m torn on this because option 1 seems correct, but option 2 results in
> less boilerplate as users need to bind processes to variables in order
> to reference them in a workflow definition.
>
> I’ll likely go with option 2.
Instead of 'make-process', why not 'processor'?
> We only need to decide whether the “process” macro (for value +
> definition) should also be available by default in Scheme workflows or
> if it should only be enabled by default in Wisp workflows.
You mean:
(process list-template
(with filename)
(name ...)
...)
right?
I think, it is a good idea because it eases the learning process from
high-level Wisp to more Scheme plumbings.
Cheers,
simon
next prev parent reply other threads:[~2020-02-06 11:59 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-02 10:20 Comments on process template syntax Ricardo Wurmus
2020-02-02 23:30 ` Kyle Meyer
2020-02-03 8:08 ` Ricardo Wurmus
2020-02-03 14:22 ` Kyle Meyer
2020-02-03 15:23 ` Ricardo Wurmus
2020-02-03 23:16 ` Kyle Meyer
2020-02-04 9:55 ` Ricardo Wurmus
2020-02-05 1:48 ` Kyle Meyer
2020-02-05 15:14 ` zimoun
2020-02-03 8:58 ` Roel Janssen
2020-02-03 12:07 ` Ricardo Wurmus
2020-02-03 12:56 ` Roel Janssen
2020-02-03 14:33 ` Ricardo Wurmus
2020-02-04 10:10 ` Ricardo Wurmus
2020-02-05 2:12 ` Kyle Meyer
2020-02-05 15:21 ` zimoun
2020-02-05 15:29 ` Kyle Meyer
2020-02-05 15:37 ` zimoun
2020-02-05 16:02 ` Kyle Meyer
2020-02-05 16:23 ` zimoun
2020-02-05 15:07 ` zimoun
2020-02-05 18:04 ` Ricardo Wurmus
2020-02-05 19:14 ` zimoun
2020-02-05 21:32 ` Ricardo Wurmus
2020-02-06 11:59 ` zimoun [this message]
2020-02-05 14:56 ` zimoun
2020-02-08 12:34 ` Ricardo Wurmus
2020-02-05 14:50 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.guixwl.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ3okZ2qdZrDY6JDmKPcyOxWxDNM53j0SmNj0xXJOPfvgFh9Kg@mail.gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=gwl-devel@gnu.org \
--cc=kyle@kyleam.com \
--cc=rekado@elephly.net \
--cc=roel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).