gwl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comments on process template syntax


From: Ricardo Wurmus
Subject: Re: Comments on process template syntax
Date: Mon, 03 Feb 2020 16:23:32 +0100
User-agent: mu4e 1.2.0; emacs 26.3

Kyle Meyer <address@hidden> writes:

> Ricardo Wurmus <address@hidden> writes:
>
>> Kyle Meyer <address@hidden> writes:
>>
>>>> (FWIW, I intend to rename the “process:” macro to just “process” to
>>>> remove confusing syntactic noise, so anything about the first line may
>>>> be changed.)
>>>
>>> Hmm, but wouldn't that conflict with the `process' constructor defined
>>> in gwl/processes.scm?
>>
>> Yes, that would need to be renamed as well.
>
> But then it's not just about syntactic sugar that helps the wisp end of
> things.  The changes are affecting how things have to be written at the
> scheme level.  While I understand your reasoning for offering the wisp
> syntax as an alternative, it seems problematic to me if a desire to
> improve readability of the wisp syntax requires changes to how things
> are written on the scheme end.

I suppose the correct way would be to rename “process:” to
“define-process” and “workflow:” to “define-workflow” and to leave
“process” and “workflow” unchanged.  Because “process:” does define a
variable that’s bound to a “process” value.

I just find “define-process” and “define-workflow” really clunky :-/

It would be possible to use the very same macro name and simply rename
things when (gwl sugar) is imported, and perhaps to import (gwl sugar)
only by default when the workflow is written in Wisp.  Currently (gwl
sugar) is always imported in the evaluation environment of any workflow.

Does this sound better?

--
Ricardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]