unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: swedebugia <swedebugia@riseup.net>
To: Amirouche Boubekki <amirouche.boubekki@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: CLI reorganization revisited
Date: Fri, 9 Nov 2018 00:13:19 +0100	[thread overview]
Message-ID: <a97218da-ffd7-df74-d1d3-e9100ceb677c@riseup.net> (raw)
In-Reply-To: <CAL7_Mo-Lh+Bx4DVXhqGqPwY7vUmTe6kirfEZ=hw6ani5dd+kMg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]



On 2018-11-08 23:46, Amirouche Boubekki wrote:
>
>     I do not understand how args work. Is this documented somewhere?
>
>     Also I do not understand this form:
>
>     (define (guix-describe . args)
>                        ^
>     What is the role of the dot?
>
>
>
> The dot serve as a separator between 'required' argument and 'rest' 
> arguments which is always a list that might be empty.
> In the above case everything passed to the procedure guix-describe is 
> considered part of args.
Thank you!

I just saw that GNU Scheme implemented that as keyword: #optional!

This is more clear for the reader/beginner actually. ;-)

-- 
Cheers Swedebugia

[-- Attachment #2: Type: text/html, Size: 1724 bytes --]

      reply	other threads:[~2018-11-09  6:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-05 21:24 CLI reorganization revisited (Was: Re: Another cli interface for guix/sd) swedebugia
2018-11-06 14:24 ` CLI reorganization revisited Ludovic Courtès
2018-11-08 22:18   ` swedebugia
2018-11-08 22:46     ` Amirouche Boubekki
2018-11-08 23:13       ` swedebugia [this message]

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://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a97218da-ffd7-df74-d1d3-e9100ceb677c@riseup.net \
    --to=swedebugia@riseup.net \
    --cc=amirouche.boubekki@gmail.com \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).