From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Manuel Gloria Newsgroups: gmane.lisp.readable-lisp,gmane.lisp.guile.user Subject: Re: wisp literal array syntax for Guile, a good idea? Date: Wed, 13 Dec 2017 06:58:26 +0800 Message-ID: References: <87mv3rgrwk.fsf@web.de> <098670CE-873B-4DCC-A111-A88044861BBD@gmail.com> <87k1yvglih.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8483803700870501313==" X-Trace: blaine.gmane.org 1513119515 27647 195.159.176.226 (12 Dec 2017 22:58:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 22:58:35 +0000 (UTC) Cc: guile-user-mXXj517/zsQ@public.gmane.org, readable-discuss , Matt Wette To: Arne Babenhauserheide Original-X-From: readable-discuss-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Tue Dec 12 23:58:31 2017 Return-path: Envelope-to: glr-readable-discuss@m.gmane.org Original-Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOtVN-0006vw-MZ for glr-readable-discuss@m.gmane.org; Tue, 12 Dec 2017 23:58:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1eOtVU-00050x-5S; Tue, 12 Dec 2017 22:58:36 +0000 Original-Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eOtVS-00050q-4L for readable-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Tue, 12 Dec 2017 22:58:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:Cc:To:Subject:Message-ID:Date:From: References:In-Reply-To:MIME-Version:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Xe9YdeGGRq5MqVoVmr6aj91LZ7DRJOWPhKDNObWcOY8=; b=T8f1NJYuZKZLL7doQkDilFlXgA hB2qVotIo5a7fIKLih/n8XY4lTMZtXEMsdlF0PRjnU/nL8DIBCgGOK2secYBi9D5wbroI7I8eZde2 MGtzpSJLWf2Ydn67do+scmnan64I1C5P5FloghzhvktMBO6NPdpafR66M43HjfX8e4zI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:Cc:To:Subject:Message-ID:Date:From:References:In-Reply-To: MIME-Version:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Xe9YdeGGRq5MqVoVmr6aj91LZ7DRJOWPhKDNObWcOY8=; b=MnVQXyZrhkJT+8eeYX6eVMhXQl Mt17z7FNRoy9ve3nL2B/VRm48RkEFTzBwFRvqvzhkkmrFhNQ7Sv3px7617s+fPokNFSXrF7lry7mN tU+khNFdQGJZgYtizVu7EyBHEKvY/qfVyHrgj/4Bi8/aLycXmAr4A23bfyKkYjAtxakc=; Original-Received: from mail-pg0-f47.google.com ([74.125.83.47]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) id 1eOtVR-0006uM-1M for readable-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Tue, 12 Dec 2017 22:58:34 +0000 Original-Received: by mail-pg0-f47.google.com with SMTP id q20so363753pgv.2 for ; Tue, 12 Dec 2017 14:58:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Xe9YdeGGRq5MqVoVmr6aj91LZ7DRJOWPhKDNObWcOY8=; b=JgH2hPLbZXV5ElJrdev3BPFpo5g3gX6Nd7y5eu9ADwJaLGWPjGabCyijH3q3r9/8Yc /zf3wdq13pO8Chil2gvL1CdKD/sNW6tp12jpghZmD1pOl1usmVQ1xdxFffUTaIKAsPFf WpwZnIQcs9Jf22MiT2xDLwEIgQRZJpF+AAp3wVp0xZRwGzFzgN76s89hlhydvrIg8S5B Zhy0PQdDyNxg7aO2iVtvU29gYY9P0Er6vcBVznkN6R7+X9W2tE9qVEpmFkErAgHOILUU Gc99zXZ4tpTngN8dJGrtGRtRmZpC89XtmxeSI0EqBc5xlKw6AN1SYK9Ud1LiSw9OU+lW y4CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Xe9YdeGGRq5MqVoVmr6aj91LZ7DRJOWPhKDNObWcOY8=; b=Al7gaYbYoyl2ogpHzMQoubRnNkehSwIR5pfKvXnh9DWpLCt7h/zx7de+oh23nCF+xv PMlN+vEqpSrjNDNRJyRLjou1EqVWR1aFrFUPRMiBAL20XivsusP3hoY5EYwr9NDP10ay ZoKV7jJq7GPfi5HhO03XUGJfoU4b1QCl/SN2oqp/z62nsn6NbjYU7NGaN5mhM9HlJGjf LWvChW1YE8ElfHDgzOF1dg+m84uOlJF6liA8RyG5qzogaCpGza/hcyiUXD53AfUKIlod TPbckkUNkh+K+l+8573wcMsBqdj/sSNiGeLICidPzpOUp3RlHWrQozLr2sQX1qcGETWF i5/Q== X-Gm-Message-State: AKGB3mKpNpJ+Ox7sly7KvC+pu6Nx735sQmddBMcqlJGYZzrfijRJ+Y8B 8kLvfA8dwcElWml6IQMZ6ItrXGqdYN3wmlLGsvE= X-Google-Smtp-Source: ACJfBovTsmUHrYc0DmIig9dKjG1knxrhArOIiWIq23Ab9R+Hte1FVxkzkS9h36lS7nUvQYCHmUT8Gxy6tG5ikm+b2M8= X-Received: by 10.98.137.14 with SMTP id v14mr3914603pfd.10.1513119507310; Tue, 12 Dec 2017 14:58:27 -0800 (PST) Original-Received: by 10.100.130.73 with HTTP; Tue, 12 Dec 2017 14:58:26 -0800 (PST) In-Reply-To: <87k1yvglih.fsf-S0/GAf8tV78@public.gmane.org> X-Headers-End: 1eOtVR-0006uM-1M X-BeenThere: readable-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discuss how to make s-expressions more readable List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: readable-discuss-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Xref: news.gmane.org gmane.lisp.readable-lisp:1552 gmane.lisp.guile.user:14343 Archived-At: --===============8483803700870501313== Content-Type: multipart/alternative; boundary="94eb2c0b421ebc6c0205602c96dd" --94eb2c0b421ebc6c0205602c96dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is arguably NOT a Guile-specific issue, but rather a general issue. Clojure uses its array syntax for parts of its syntax, for example. The ## seems OK, but how about just plain # ? So like (using only (read) and not (eval (read))): ' a b =3D> (quote (a b)) '(a b) =3D> (quote (a b)) # a b =3D> #(a b) #(a b) =3D> #(a b) Sincerely, AmkG On Mon, Nov 13, 2017 at 6:38 AM, Arne Babenhauserheide wrote: > > Matt Wette writes: > > > Do you have a syntax for vector literals? If not, why can't you just > write > > I don=E2=80=99t, but while > > (vector '(a b)) > =E2=87=92 #((a b)) > > (define (f) > (vector '(a b)) #f) > (procedure-properties f) > =E2=87=92 ((name . f)) > > But > (define (f) > #((a b)) #f) > (procedure-properties f) > =E2=87=92 ((name . f) (a b)) > > So this is a purely Guile-specific issue: I want Guile to recognize the > vector as function-property. If it recognized (vector ...), I could use > the simple syntax > > define : hello who > . "Say hello to WHO" > vector > ' tests > test-equal "Hello World!\n" > hello "World" > format #f "Hello ~a!\n" > . who > > (this would be my preferred approach, but I did not find any way to get > this working) > > Best wishes, > Arne > -- > Unpolitisch sein > hei=C3=9Ft politisch sein > ohne es zu merken > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Readable-discuss mailing list > Readable-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/readable-discuss > > --94eb2c0b421ebc6c0205602c96dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is = arguably NOT a Guile-specific issue, but rather a general issue.=C2=A0 Cloj= ure uses its array syntax for parts of its syntax, for example.

The ## seems OK, but how about just plain # ?

So like (using= only (read) and not (eval (read))):

' a b
=3D>= ; (quote (a b))
'(a b)
=3D> (quote (a b)= )
# a b
=3D> #(a b)
#(a b)
=3D> #= (a b)

Sincerely,
AmkG

=

On Mon, Nov= 13, 2017 at 6:38 AM, Arne Babenhauserheide <arne_bab-S0/GAf8tV78@public.gmane.org> wrote:

Matt Wette <matt.wette-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= > writes:

> Do you have a syntax for vector literals?=C2=A0 If not, why can't = you just write

I don=E2=80=99t, but while

(vector '(a b))
=E2=87=92 #((a b))

(define (f)
=C2=A0 (vector '(a b)) #f)
(procedure-properties f)
=E2=87=92 ((name . f))

But
(define (f)
=C2=A0 #((a b)) #f)
(procedure-properties f)
=E2=87=92 ((name . f) (a b))

So this is a purely Guile-specific issue: I want Guile to recognize the
vector as function-property. If it recognized (vector ...), I could use
the simple syntax

define : hello who
=C2=A0 =C2=A0 . "Say hello to WHO"
=C2=A0 =C2=A0 vector
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ' tests
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 test-equal "= ;Hello World!\n"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0hello "World"
=C2=A0 =C2=A0 format #f "Hello ~a!\n"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0. who<= br>
(this would be my preferred approach, but I did not find any way to = get
this working)

Best wishes,
Arne
--
Unpolitisch sein
hei=C3=9Ft politisch sein
ohne es zu merken

------------------------------------------------------= ------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_________= ______________________________________
Readable-discuss mailing list
Readable-discuss@= lists.sourceforge.net
https://lists.sourceforge.net/list= s/listinfo/readable-discuss


--94eb2c0b421ebc6c0205602c96dd-- --===============8483803700870501313== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============8483803700870501313== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Readable-discuss mailing list Readable-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/readable-discuss --===============8483803700870501313==--