Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"In short, _N is Richardian if, and only if, _N is not Richardian."


devel / comp.lang.lisp / Re: quote

SubjectAuthor
* quotenone
+* Re: quoteSiebe de Vos
|`- Re: quotenone
+* Re: quoteKaz Kylheku
|`- Re: quoteStefan Monnier
`- Re: quotesteve g

1
quote

<nnd$7b2907eb$45405c29@d0f2b68c522039e3>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Newsgroups: comp.lang.lisp
Subject: quote
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$7b2907eb$45405c29@d0f2b68c522039e3>
Organization: KPN B.V.
Date: Fri, 29 Apr 2022 11:54:25 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 19
Injection-Date: Fri, 29 Apr 2022 11:54:25 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: none - Fri, 29 Apr 2022 09:54 UTC

What with the superfluous parentheses with quote ?

Why
(quote (a b c ))

in stead of

(quote a b c ) ?

After all quote is a special function, it decides for itself
whether the arguments are evaluated.

Groetjes Albert
--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Re: quote

<t4gf2d$17mo$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!vvj3SKcdvIB1lI1+DgPx4A.user.46.165.242.91.POSTED!not-for-mail
From: siebe@de-vos.de (Siebe de Vos)
Newsgroups: comp.lang.lisp
Subject: Re: quote
Date: Fri, 29 Apr 2022 12:35:57 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t4gf2d$17mo$1@gioia.aioe.org>
References: <nnd$7b2907eb$45405c29@d0f2b68c522039e3>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="40664"; posting-host="vvj3SKcdvIB1lI1+DgPx4A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Siebe de Vos - Fri, 29 Apr 2022 10:35 UTC

On 29/04/2022 11.54, albert wrote:
> What with the superfluous parentheses with quote ?
>
> Why
> (quote (a b c ))
>
> in stead of
>
> (quote a b c ) ?
>
> After all quote is a special function, it decides for itself
> whether the arguments are evaluated.
>
> Groetjes Albert

What does (quote a) mean in your proposal:

'a

or

'(a)

Re: quote

<nnd$1953f4d4$02f42e2d@f449a760bca868de>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Newsgroups: comp.lang.lisp
Subject: Re: quote
References: <nnd$7b2907eb$45405c29@d0f2b68c522039e3> <t4gf2d$17mo$1@gioia.aioe.org>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$1953f4d4$02f42e2d@f449a760bca868de>
Organization: KPN B.V.
Date: Fri, 29 Apr 2022 13:37:27 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abe005.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 37
Injection-Date: Fri, 29 Apr 2022 13:37:27 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1521
 by: none - Fri, 29 Apr 2022 11:37 UTC

In article <t4gf2d$17mo$1@gioia.aioe.org>,
Siebe de Vos <siebe@de-vos.de> wrote:
>On 29/04/2022 11.54, albert wrote:
>> What with the superfluous parentheses with quote ?
>>
>> Why
>> (quote (a b c ))
>>
>> in stead of
>>
>> (quote a b c ) ?
>>
>> After all quote is a special function, it decides for itself
>> whether the arguments are evaluated.
>>
>> Groetjes Albert
>
>What does (quote a) mean in your proposal:
>
>'a
>
>or
>
>'(a)

You implicitly answered the question.
There would be no distinction between
(quote a) and (quote (a)) and I can see
that this is necessary.

Groetjes Albert
--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Re: quote

<20220429120444.587@kylheku.com>

  copy mid

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

  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: quote
Date: Fri, 29 Apr 2022 19:15:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <20220429120444.587@kylheku.com>
References: <nnd$7b2907eb$45405c29@d0f2b68c522039e3>
Injection-Date: Fri, 29 Apr 2022 19:15:32 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="eb7799e431a64fe1e4f6b7cb38351f39";
logging-data="19447"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wC63M7NpMP534NHr87eVyC7Ze9C2xfRE="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:lKae12KUyqTmY0mNgVMTtXUz5hg=
 by: Kaz Kylheku - Fri, 29 Apr 2022 19:15 UTC

On 2022-04-29, albert@cherry.(none) (albert) <albert@cherry> wrote:
> What with the superfluous parentheses with quote ?
>
> Why
> (quote (a b c ))
>
> in stead of
>
> (quote a b c ) ?
>
> After all quote is a special function, it decides for itself
> whether the arguments are evaluated.

Hi Albert.

The syntax of quote is actually

(quote expression)

The extra level of list nesting there comes from the expression being a
compound:

(quote (list 1 2 3)) -> (list 1 2 3)

It doesn't have to be a compound:

(quote a) -> a ;; quote a symbol

Given that expression can be anything, it follows that quote must
support (quote (a b c)).

So there is the possibility that quote could *also* support
(quote a b c) as a shorthand for (quote (a b c)).

But that would only complicate every single situation in which a piece
of syntax must be analyzed; both representations would have to be
handled.

So then we could also think about banishing (quote (a b c)) and
requiring it that the representation of that must be (quote a b c). But
then, because lists can sometimes be one element long, what do you do
with (quote (a))? If that is required to be written (quote a), then you
have confusion with quoting a symbol.

Then there are other considerations. Consider the backquote.

What if you have this:

`(.... (quote ,@splice))

If the splice variable happens to contain the list (a), we get
(quote a), which means quote the a symbol.
If it contains (a b c) we get (quote a b c), which means
(quote (a b c)). Yikes; the shape of the run-time value being spliced
determines the meaning of the code being generated.

Currentg backquote implementations will diagnose the istuation
when two or more elements are spliced into quote form.
If you have splice under a quote:

',@splice
(quote ,@splice)

and splice does not evaluate to a list of exactly one elements, the
backquote implementation will somehow diagnose it. (Possibly
by just generating the bad quote and letting the quote operator
diagnose it, or by itself recognizing the bad quote, since
the backquote expander does have to walk and understand quotes.)

Lastly, there is no utility whatsoever in trying to reduce the
list shape of the quote syntax to a less nested form, because
there is already a read syntax which hides it: '(a b c)!

Quotes disappear at compile time. Extra nesting in a bit of
compile-time syntax is nothing.

Cheers!

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

Re: quote

<jwvwnf7pqkq.fsf-monnier+comp.lang.lisp@gnu.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: monnier@iro.umontreal.ca (Stefan Monnier)
Newsgroups: comp.lang.lisp
Subject: Re: quote
Date: Fri, 29 Apr 2022 16:46:29 -0400
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <jwvwnf7pqkq.fsf-monnier+comp.lang.lisp@gnu.org>
References: <nnd$7b2907eb$45405c29@d0f2b68c522039e3>
<20220429120444.587@kylheku.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="b99cec5df2a671b1cdbe56fcfdab2af8";
logging-data="4456"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18n/vC8mfjate7EdV8Rnxwh"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cancel-Lock: sha1:U8Kq9vudV8lsVufIOwEJQJGApeU=
sha1:62xH7dnobNlfFDo2g3s6d191dXY=
 by: Stefan Monnier - Fri, 29 Apr 2022 20:46 UTC

> The syntax of quote is actually
>
> (quote expression)

Of course, it could have been

(quote . <expression>)

so that (quote a b c) indeed returns the value (a b c), but then you'd
need to write (quote . 42) to return the value 42.

> Quotes disappear at compile time. Extra nesting in a bit of
> compile-time syntax is nothing.

Indeed,

Stefan

Re: quote

<zNScnTDm4vselMr-nZ2dnZfqn_adnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!news.uzoreto.com!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!69.80.99.22.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 24 Oct 2022 21:54:09 +0000
Content-Type: text/plain; charset="ISO-8859-1"
From: sgonedes1977@gmail.com (steve g)
Organization: ^?
Date: Mon, 24 Oct 2022 17:53:58 -0400
User-Agent: KNode/4.14.10
Content-Transfer-Encoding: 7Bit
Subject: Re: quote
Newsgroups: comp.lang.lisp
References: <nnd$7b2907eb$45405c29@d0f2b68c522039e3>
MIME-Version: 1.0
Message-ID: <zNScnTDm4vselMr-nZ2dnZfqn_adnZ2d@giganews.com>
Lines: 34
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-91jPL/I8mYz7uX+RXjVmRXOJBybLwsjwAzJm33ABBVYbX45CBHH6f+gO3AZQue7fwgz10K5Pw30t0Pp!aofFZ56Cd5sMxxv1zlxPWYIk7TpGx5whAR3Aai0S2UOccaCVRmOR5Su8XozYQ+UmNssrEKsUKA==
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
 by: steve g - Mon, 24 Oct 2022 21:53 UTC

none wrote:

> What with the superfluous parentheses with quote ?
>
> Why
> (quote (a b c ))
>
> in stead of
>
> (quote a b c ) ?
>
> After all quote is a special function, it decides for itself
> whether the arguments are evaluated.
>
> Groetjes Albert

The special form quote takes one argument.

CL-USER> (defmacro maybe-quote (itm)
(if (constantp itm) itm `',itm))
MAYBE-QUOTE
CL-USER> (maybe-quote 3)
3 CL-USER> (maybe-quote 4)
4 CL-USER> (maybe-quote this)
THIS
CL-USER> (maybe-quote this)
THIS
CL-USER>
; No value
CL-USER> (maybe-quote 'that)
THAT
CL-USER>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor