From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.bugs Subject: bug#38236: R7RS reader does not support datum labels Date: Sat, 16 Nov 2019 17:41:18 -0500 Message-ID: References: <87pnhrmtrc.fsf@pobox.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000046c85e05977e6aa0" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="134765"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38236@debbugs.gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Nov 16 23:42:10 2019 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iW6ld-000YxY-UB for guile-bugs@m.gmane.org; Sat, 16 Nov 2019 23:42:10 +0100 Original-Received: from localhost ([::1]:50460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iW6lc-0001tB-Ph for guile-bugs@m.gmane.org; Sat, 16 Nov 2019 17:42:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36969) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iW6lX-0001sn-GQ for bug-guile@gnu.org; Sat, 16 Nov 2019 17:42:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iW6lW-00041h-Ey for bug-guile@gnu.org; Sat, 16 Nov 2019 17:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59269) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iW6lW-00041P-4r for bug-guile@gnu.org; Sat, 16 Nov 2019 17:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iW6lW-000815-0G for bug-guile@gnu.org; Sat, 16 Nov 2019 17:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Cowan Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 16 Nov 2019 22:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38236 X-GNU-PR-Package: guile Original-Received: via spool by 38236-submit@debbugs.gnu.org id=B38236.157394409630784 (code B ref 38236); Sat, 16 Nov 2019 22:42:01 +0000 Original-Received: (at 38236) by debbugs.gnu.org; 16 Nov 2019 22:41:36 +0000 Original-Received: from localhost ([127.0.0.1]:39857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iW6l5-00080R-TS for submit@debbugs.gnu.org; Sat, 16 Nov 2019 17:41:36 -0500 Original-Received: from mail-qk1-f169.google.com ([209.85.222.169]:43140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iW6l3-00080C-UL for 38236@debbugs.gnu.org; Sat, 16 Nov 2019 17:41:34 -0500 Original-Received: by mail-qk1-f169.google.com with SMTP id z23so11205211qkj.10 for <38236@debbugs.gnu.org>; Sat, 16 Nov 2019 14:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/3DZjQd26V5zVr6VYvVKUnubkBYHIcaGRyko9/Ue+dQ=; b=nLlSFfxCJo4FHlKTSlpuM4OE9GgTAz3Bh2VqI5t+OBOHw8AiPRJq6MWoUkqTtblQyU 0GPnIB67Nhz3xc+SnyB0i2Pii3J2rStbs/n0EuXNhb9nckeBuW+jaXT1VjE8Qjkf7Aai P9xU8fXj/H3LdYGqaw6Kqgv8hLBxs7rZ0FGuB2MsqsI7phREHYzAOBn2gjoSUMR8KUw5 0hGy3TXoMV+N3LvlOIJNLW8B2KTevzf/7c6qefJG7aBR4p3UKa5zSRio95amRpYAo4on 424lXVI03spZNGPhQGcyVcVZKUScxXYwYZphiTrFgafcBkjvCiPLUh6kYGyFoTTjZRo/ F9sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/3DZjQd26V5zVr6VYvVKUnubkBYHIcaGRyko9/Ue+dQ=; b=sO/g7kXLaJW4aQyUL2TNfQBH0+5HLd9hh15vcw7l0nIBdSME7EeAZHVjKQ8CsQjPsj 0u4IvRgOSuZYcW6nA5JaCe/7Yzc7MryDns5rSjMICHFJmJGnj+UzSFja5gzUtpnKoQhk wh692+aDPFhxaZavbjCewqlO/y/jUSRVVBINP/EuIfz7CR5tu+GhcXzLz0JDJtiCfUTw 1SK8jP4rLN3AtLVBeEFEdYybNoQBEzBearxSPsBhcquhWU0QrbPOArdQjbgOIuBI8RBa Dg3cDPbHOQY3WwgJuWu7O8Mp/Q3WyZ1U0COlJhO/OJ1WXPnNbkIwFhzwQx2BukQyn03F EEcg== X-Gm-Message-State: APjAAAVCa+cvVb/0y1XTQnrA0IlHQDBan6tqk2RF+wWMHyuRWs0ez/Ww 71ZFvwa/lN6uCzscPtODo91bgDBrQ0sw5Pfw3SFuaw== X-Google-Smtp-Source: APXvYqzronLEL/Jsg85z1gNL9DKoJyTDm/UBDI6GU0/kIatlRH94qUKROMAK9u1EtILyBtAYUFfLMOw8UEAIXftTtgA= X-Received: by 2002:a37:aa44:: with SMTP id t65mr19386511qke.60.1573944088242; Sat, 16 Nov 2019 14:41:28 -0800 (PST) In-Reply-To: <87pnhrmtrc.fsf@pobox.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9448 Archived-At: --00000000000046c85e05977e6aa0 Content-Type: text/plain; charset="UTF-8" I don't see where the incompatibility comes in, although more lookahead would be required. Per the Guile documentation, neither #n# nor #n= (where n is a sequence of digits) is a valid array tag. On Sat, Nov 16, 2019 at 3:50 PM Andy Wingo wrote: > R7RS defines a lexical feature called "datum labels"; see section 2.4 in > the report. An example would be: > > #0=(a b c . #0#) > > Guile's reader doesn't support this feature and it's not clear if we > should, in general. Note, datum literals appear to be incompatible with > array literals. But we could of course use the R7RS layer as a place to > experiment with a `read' implemented in Scheme. > > > > --00000000000046c85e05977e6aa0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I don't see where the incompatibility comes in, althou= gh more lookahead would be required.=C2=A0 Per the Guile documentation, nei= ther=C2=A0#n# nor #n=3D (where n is a sequence of digits) is a valid array = tag.

On Sat, Nov 16, 2019 at 3:50 PM Andy Wingo <wingo@pobox.com> wrote:
R7RS defines a lexical feature called "datum= labels"; see section 2.4 in
the report.=C2=A0 An example would be:

=C2=A0 =C2=A0#0=3D(a b c . #0#)

Guile's reader doesn't support this feature and it's not clear = if we
should, in general.=C2=A0 Note, datum literals appear to be incompatible wi= th
array literals.=C2=A0 But we could of course use the R7RS layer as a place = to
experiment with a `read' implemented in Scheme.



--00000000000046c85e05977e6aa0--