From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <871rrdthmz.fsf@elephly.net> <87lfpjswla.fsf@elephly.net> <87blqcrjuz.fsf@elephly.net> <874kw4ra7u.fsf@elephly.net> In-Reply-To: <874kw4ra7u.fsf@elephly.net> From: zimoun Date: Thu, 6 Feb 2020 12:59:36 +0100 Message-ID: Subject: Re: Comments on process template syntax Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable To: Ricardo Wurmus Cc: Roel Janssen , Kyle Meyer , gwl-devel@gnu.org List-ID: Hi, On Wed, 5 Feb 2020 at 22:33, Ricardo Wurmus wrote: > > Aside, the 'process' macro should be renamed as Kyle mentioned it. > > Because it is confusing, IMHO. > > Yes, I=E2=80=99m considering a rename, but I=E2=80=99m not sure which is = the best > option. We could either have (1) =E2=80=9Cdefine-process=E2=80=9D (for v= alue + > definition) and =E2=80=9Cprocess=E2=80=9D (for just the value), or we cou= ld have (2) > =E2=80=9Cprocess=E2=80=9D (for value + definition) and =E2=80=9Cmake-proc= ess=E2=80=9D (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=E2=80=99m torn on this because option 1 seems correct, but option 2 res= ults in > less boilerplate as users need to bind processes to variables in order > to reference them in a workflow definition. > > I=E2=80=99ll likely go with option 2. Instead of 'make-process', why not 'processor'? > We only need to decide whether the =E2=80=9Cprocess=E2=80=9D macro (for v= alue + > 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