Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Oh dear, I think you'll find reality's on the blink again." -- Marvin The Paranoid Android


devel / comp.lang.lisp / Destructuring Lambda Lists

SubjectAuthor
* Destructuring Lambda ListsSpiros Bousbouras
+- Re: Destructuring Lambda ListsZyni Moë
+- Re: Destructuring Lambda ListsLieven Marchand
`* Re: Destructuring Lambda ListsKaz Kylheku
 `* Re: Destructuring Lambda ListsZyni Moë
  `- Re: Destructuring Lambda ListsTom Russ

1
Destructuring Lambda Lists

<jAvX06sHyWkzUXMSS@bongo-ra.co>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17033&group=comp.lang.lisp#17033

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.cyber23.de!.POSTED!not-for-mail
From: spibou@gmail.com (Spiros Bousbouras)
Newsgroups: comp.lang.lisp
Subject: Destructuring Lambda Lists
Date: Sun, 10 Apr 2022 22:03:57 -0000 (UTC)
Organization: Cyber23 news
Message-ID: <jAvX06sHyWkzUXMSS@bongo-ra.co>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Apr 2022 22:03:57 -0000 (UTC)
Injection-Info: news.cyber23.de;
logging-data="17542"; mail-complaints-to="abuse@cyber23.de"
X-Organisation: Weyland-Yutani
X-Server-Commands: nowebcancel
 by: Spiros Bousbouras - Sun, 10 Apr 2022 22:03 UTC

3.4.5 Destructuring Lambda Lists :
A destructuring lambda list can contain all of the lambda list
keywords listed for macro lambda lists except for &environment
[...]
envvar::= [&environment var]

Is the appearance of envvar::= [&environment var] an error ?

Re: Destructuring Lambda Lists

<t2vlcg$ndb$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17034&group=comp.lang.lisp#17034

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no_email@invalid.invalid (Zyni Moë)
Newsgroups: comp.lang.lisp
Subject: Re: Destructuring Lambda Lists
Date: Sun, 10 Apr 2022 22:23:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <t2vlcg$ndb$1@dont-email.me>
References: <jAvX06sHyWkzUXMSS@bongo-ra.co>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Apr 2022 22:23:12 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d4e8ae854a6b7a32757406189ff1b35d";
logging-data="23979"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aHS8IW/msRcyNOQQIo2qBb684TIJkiLM="
User-Agent: NewsTap/5.5 (iPad)
Cancel-Lock: sha1:BCxT2FC8fgkF0QUIskc04LilmV0=
sha1:UY4qmscWXwQdHrrsamwmkZI1Y8Q=
 by: Zyni Moë - Sun, 10 Apr 2022 22:23 UTC

Spiros Bousbouras <spibou@gmail.com> wrote:
> 3.4.5 Destructuring Lambda Lists :
> A destructuring lambda list can contain all of the lambda list
> keywords listed for macro lambda lists except for &environment
> [...]
> envvar::= [&environment var]
>
> Is the appearance of envvar::= [&environment var] an error ?
>

Technically no: nothing in the other productions refers to it, so it can
not make any difference. In fact, yes: has clearly been left in when
editing macro lambda list.

--
the small snake

Re: Destructuring Lambda Lists

<87o817eh0x.fsf@wyrd.be>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17035&group=comp.lang.lisp#17035

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!45.76.7.193.MISMATCH!3.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 11 Apr 2022 16:12:09 +0000
From: mal@wyrd.be (Lieven Marchand)
Newsgroups: comp.lang.lisp
Subject: Re: Destructuring Lambda Lists
References: <jAvX06sHyWkzUXMSS@bongo-ra.co>
Date: Mon, 11 Apr 2022 18:11:58 +0200
Message-ID: <87o817eh0x.fsf@wyrd.be>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:mU9lLO0APQpUK31ZKHDYzxLH9lk=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Lines: 16
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-O8bPA0id0Rcit/07UWeXWFnD+AJkoUwbWHI1bB2KhTfY93/eCDIxI38eHbEfTr8lIxt0k5OnwpR48Qk!hi2htkCbJwuq2NykH5vnzUBPWNqAQaEqJeyNXlrZAQ==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1659
 by: Lieven Marchand - Mon, 11 Apr 2022 16:11 UTC

Spiros Bousbouras <spibou@gmail.com> writes:

> 3.4.5 Destructuring Lambda Lists :
> A destructuring lambda list can contain all of the lambda list
> keywords listed for macro lambda lists except for &environment
> [...]
> envvar::= [&environment var]
>
> Is the appearance of envvar::= [&environment var] an error ?

Unless I'm missing something it's not used in any production rule so at
most some extraneous copy pasting.

--
Laat hulle almal sterf. Ek is tevrede om die wêreld te sien brand en die vallende
konings te spot. Ek en my aasdier sal loop op die as van die verwoeste aarde.

Re: Destructuring Lambda Lists

<20220411132551.571@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17036&group=comp.lang.lisp#17036

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: 480-992-1380@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.lisp
Subject: Re: Destructuring Lambda Lists
Date: Mon, 11 Apr 2022 20:39:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <20220411132551.571@kylheku.com>
References: <jAvX06sHyWkzUXMSS@bongo-ra.co>
Injection-Date: Mon, 11 Apr 2022 20:39:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="37c5fd745c00b8ba1bb27b9713e829ae";
logging-data="17708"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zJVrTeJ9M0znjyjAgy5BXn4HuBDWve/U="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:YbAdo3jr0KgaxzacwOcluMnA/Ls=
 by: Kaz Kylheku - Mon, 11 Apr 2022 20:39 UTC

On 2022-04-10, Spiros Bousbouras <spibou@gmail.com> wrote:
> 3.4.5 Destructuring Lambda Lists :
> A destructuring lambda list can contain all of the lambda list
> keywords listed for macro lambda lists except for &environment
> [...]
> envvar::= [&environment var]
>
> Is the appearance of envvar::= [&environment var] an error ?

I think it has to be in the syntax so that implementations can diagnose
it as an error.

Remember that &whatever are ordinary symbols.

If the documentation only said this:

"A destructuring lambda list can contain all of the lambda list
keywords listed for macro lambda lists except for &environment"

and made no other mention of the parameter, then a possible
interpretation would be that: destructuring lambda lists do not support
&environment --- and therefore, in destructuring lambda lists,
&environment is just an ordinary symbol which is semantically a
parameter name.

According to this interpretation, implementations would not be able to
reject it, only emit a nuisance diagnostic like "warning: &environment
is an ordinary symbol in destructuring-bind", but then obligingly
proceed with the symbol as ordinary, in order to remain conforming.

The syntax makes it clear that destructuring lambda lists *have* an
envvar phrase structure in the *syntax*. The other requirement makes it
clear that *instances* of this phrase structure are not supported
for that kind of lambda list.

Just because something is in the syntax doesn't mean it may be used;
languages often allow more combinations in the syntax than is
semantically valid.

E.g. in C, "unsigned short double" is valid syntax; a constraint rule
rejects this combination of specifiers as invalid. Static type checks
are another source of examples of the concept.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal

Re: Destructuring Lambda Lists

<t33bi7$hne$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17037&group=comp.lang.lisp#17037

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no_email@invalid.invalid (Zyni Moë)
Newsgroups: comp.lang.lisp
Subject: Re: Destructuring Lambda Lists
Date: Tue, 12 Apr 2022 08:00:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <t33bi7$hne$1@dont-email.me>
References: <jAvX06sHyWkzUXMSS@bongo-ra.co>
<20220411132551.571@kylheku.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Apr 2022 08:00:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="caa8d928ed2e1ac22aba71b8622bbf49";
logging-data="18158"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KhSS/qkOnFAs3D4syijDJBBa7KeP55gc="
User-Agent: NewsTap/5.5 (iPad)
Cancel-Lock: sha1:vd7loGONA+h++djtX+VsJDZxL2w=
sha1:zltTqRFDqtps4rV5o/5d3LG6DhE=
 by: Zyni Moë - Tue, 12 Apr 2022 08:00 UTC

Kaz Kylheku <480-992-1380@kylheku.com> wrote:

>
> I think it has to be in the syntax so that implementations can diagnose
> it as an error.
>

It is not present in syntax for ordinary lambda lists: does that mean it is
legal there: what should (lambda (&environment foo) ...) do?

--
the small snake

Re: Destructuring Lambda Lists

<37d01039-9835-4b5a-b22a-c2aa9ab6ed5fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17039&group=comp.lang.lisp#17039

  copy link   Newsgroups: comp.lang.lisp
X-Received: by 2002:ad4:5986:0:b0:444:503e:eb0d with SMTP id ek6-20020ad45986000000b00444503eeb0dmr6984813qvb.44.1649795455666;
Tue, 12 Apr 2022 13:30:55 -0700 (PDT)
X-Received: by 2002:a05:6808:3027:b0:2f9:6618:ea55 with SMTP id
ay39-20020a056808302700b002f96618ea55mr2594706oib.247.1649795455095; Tue, 12
Apr 2022 13:30:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.lisp
Date: Tue, 12 Apr 2022 13:30:54 -0700 (PDT)
In-Reply-To: <t33bi7$hne$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:8000:7603:1703:b94b:4d7b:9e8c:6e90;
posting-account=05zmAwoAAAAJZM-3jv1hCWLHGZQceqwA
NNTP-Posting-Host: 2603:8000:7603:1703:b94b:4d7b:9e8c:6e90
References: <jAvX06sHyWkzUXMSS@bongo-ra.co> <20220411132551.571@kylheku.com> <t33bi7$hne$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <37d01039-9835-4b5a-b22a-c2aa9ab6ed5fn@googlegroups.com>
Subject: Re: Destructuring Lambda Lists
From: taruss@google.com (Tom Russ)
Injection-Date: Tue, 12 Apr 2022 20:30:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Tom Russ - Tue, 12 Apr 2022 20:30 UTC

On Tuesday, April 12, 2022 at 1:00:30 AM UTC-7, Zyni Moë wrote:
> Kaz Kylheku <480-99...@kylheku.com> wrote:
>
> >
> > I think it has to be in the syntax so that implementations can diagnose
> > it as an error.
> >
> It is not present in syntax for ordinary lambda lists: does that mean it is
> legal there: what should (lambda (&environment foo) ...) do?

FWIW SBCL signals an error for
((lambda (&environment foo) (print foo)) ...)

In any case, it would be an unwise name to choose for an ordinary variable.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor