unofficial mirror of gwl-devel@gnu.org
 help / color / mirror / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: zimoun <zimon.toutoune@gmail.com>
Cc: gwl-devel@gnu.org
Subject: Re: Comments on process template syntax
Date: Wed, 05 Feb 2020 19:04:36 +0100	[thread overview]
Message-ID: <87blqcrjuz.fsf@elephly.net> (raw)
In-Reply-To: <CAJ3okZ3F0VRhRiCO0yZJFWMr8M_po_RM=W6nB1agb=iCzuWNNA@mail.gmail.com>


zimoun <zimon.toutoune@gmail.com> writes:

> Does it make sense to expand "process: proc arg" as "process : proc arg"?
> Well, disallow the colon ':' in all the name (symbol) and then expand.

This is not easily accomplished because “:” is a valid character in a
symbol.  So I’d have to replace the reader to disallow “:” in symbols.
That’s a very big intervention.

> Because this space is a drawback of Wisp, I mean at least to me.
> Especially coming from Python where the standard is to have "def
> proc(arg):" and not "def proc(arg) :".

I see what you mean.  The “:” on its own is just the Wisp way of saying
“wrap the rest of this line in parentheses”.  In Haskell that’s “$”.  In
both cases it’s separate from any identifiers.

In the Python case the “:” serves no real purpose as far as I can tell.

>>     process list-file-template (filename)
>
> I find this one the clearer.

Unfortunately, this one is not possible due to ambiguity in the process
macro as I explained in an earlier email.  We can avoid this ambiguity
by adding “with” as extra syntax:

  process list-file-template (with filename)

It’s not perfect, but I don’t see another way that would be any clearer.
An (untested) alternative is

  process list-file-template this that anything whatever
    …

or

  process list-file-template with this that anything whatever
    …

i.e. just list the arguments after the process name.  What’s not so nice
about this is the lack of visual separation (you will need editor
support to visually set the arguments apart from the first two tokens),
and the fact that you’ll probably have to use a leading period to
continue the line.

I honestly can’t tell which of the options is better.  It’s like saying
the word “table” 50 times in a row and wondering what these odd sounds
really mean…

--
Ricardo

  reply	other threads:[~2020-02-05 18:04 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 [this message]
2020-02-05 19:14         ` zimoun
2020-02-05 21:32           ` Ricardo Wurmus
2020-02-06 11:59             ` zimoun
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=87blqcrjuz.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=gwl-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /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).