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

This page is part of the web mail archives of SRFI 71 from before July 7th, 2015. The new archives for SRFI 71 contain all messages, not just those from before July 7th, 2015.

*To*: Sebastian Egner <sebastian.egner@xxxxxxxxxxx>*Subject*: Re: what about dropping rest-lists?*From*: "Neil W. Van Dyke" <neil@xxxxxxxxxxxxxxx>*Date*: Wed, 18 May 2005 10:00:32 -0400*Cc*: srfi-71@xxxxxxxxxxxxxxxxx*Delivered-to*: srfi-71@xxxxxxxxxxxxxxxxx*In-reply-to*: <OF1AFFB35C.AA3E9CC6-ONC1257005.0032932D-C1257005.0032EAB2@xxxxxxxxxxx>*References*: <PlwC0.A.CJF.2LeiCB@rotkohl> <OF1AFFB35C.AA3E9CC6-ONC1257005.0032932D-C1257005.0032EAB2@xxxxxxxxxxx>

Sebastian Egner <sebastian.egner@xxxxxxxxxxx> wrote at 2005-05-18T11:15:21+0200: > I still like Neil's (rest x) idea for it's readability, but it does > not cover the empty case. Does the following work? (let ( (a b c (values 1 2 3)) ) c) ;=> 3 (let ( (a b (values 1 2 )) ) b) ;=> 2 (let ( (a (values 1 )) ) a) ;=> 1 (let ( ( (values )) ) #f) ;; no values (let ( (a b c (rest x) (values 1 2 3)) ) x) ;=> () (let ( (a b (rest x) (values 1 2 3)) ) x) ;=> (3) (let ( (a (rest x) (values 1 2 3)) ) x) ;=> (2 3) (let ( ( (rest x) (values 1 2 3)) ) x) ;=> (1 2 3) (let ( ( (rest x) (values 1 2 3)) ) x) ;=> (1 2 3) (let ( ( (rest x) (values 1 2 )) ) x) ;=> (1 2) (let ( ( (rest x) (values 1 )) ) x) ;=> (1) (let ( ( (rest x) (values )) ) x) ;=> () The change to the R5RS BNF "binding spec" production(s): <binding spec> --> (<variable>* <expression>) | (<variable>* (rest <variable>) <expression>) By the way, I neglected to observe yesterday that the parens around the "rest" clause are *necessary* for machine disambiguation, since we want to permit "rest" as a variable identifier in all cases. -- http://www.neilvandyke.org/

**Follow-Ups**:**Re: what about dropping rest-lists?***From:*Neil W. Van Dyke

**References**:**Re: what about dropping rest-lists?***From:*Sebastian Egner

- Prev by Date:
**Re: what about dropping rest-lists?** - Next by Date:
**Re: what about dropping rest-lists?** - Previous by thread:
**Re: what about dropping rest-lists?** - Next by thread:
**Re: what about dropping rest-lists?** - Index(es):