From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amirouche Boubekki Subject: Re: CLI reorganization revisited Date: Thu, 8 Nov 2018 23:46:07 +0100 Message-ID: References: <54f45908-3390-b95e-d52a-eb34e6caf239@riseup.net> <87va5az3ks.fsf@gnu.org> <365ea0c0-a3b5-69de-398c-af216ed55975@riseup.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d144c8057a2f0096" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKt4R-0003qE-Vw for guix-devel@gnu.org; Thu, 08 Nov 2018 17:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKt4R-00010w-26 for guix-devel@gnu.org; Thu, 08 Nov 2018 17:46:39 -0500 In-Reply-To: <365ea0c0-a3b5-69de-398c-af216ed55975@riseup.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia@riseup.net Cc: guix-devel --000000000000d144c8057a2f0096 Content-Type: text/plain; charset="UTF-8" > > 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. HTH --000000000000d144c8057a2f0096 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I do not understand how args work. Is this documented somewhere?

Also I do not understand this form:

(define (guix-describe . args)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^
What is the role of the dot?


=
The dot serve as a separator between 'required' argument and &= #39;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.

HTH
--000000000000d144c8057a2f0096--