unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Artyom Poptsov <poptsov.artyom@gmail.com>
To: taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer")
Cc: Guile Users' Mailing List <guile-user@gnu.org>
Subject: Re: Guile 2.0.9, reader: Cannot 'read' an '*unspecified*' value
Date: Tue, 03 Nov 2015 22:37:15 +0300	[thread overview]
Message-ID: <871tc6yivo.fsf@elephant.savannah> (raw)
In-Reply-To: <87pozr9m7e.fsf@T420.taylan> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Tue, 03 Nov 2015 15:44:37 +0100")

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]

Hello Taylan,

thanks for your comments.  I may agree that *unspecified* value should
not be used in the Scheme code explicitly, yet 'make-vector' uses it as
the default filling for newly created vectors.  Given that it's not
possible to 'read' them, it adds to the special cases when output of
'write' is not machine readable.

It's possible to solve this dilemma by introducing a special case to a
user program as well when it cannot 'read' a vector unless the user
specified a proper filling.  Nevertheless I thought this is a problem
and the problem is worth of thinking about; and maybe there's a solution
that requires minimal changes to Guile sources.

And note that the reader callback relies on *undefined* value anyways.

- Artyom

P.S. I was going to send the patch to guile-devel ML, but by a mistake
     sent it to guile-users ML.  Sorry for that.

-- 
Artyom V. Poptsov <poptsov.artyom@gmail.com>;  GPG Key: 0898A02F
Home page: http://poptsov-artyom.narod.ru/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

  parent reply	other threads:[~2015-11-03 19:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-03 13:56 Guile 2.0.9, reader: Cannot 'read' an '*unspecified*' value Artyom Poptsov
2015-11-03 14:44 ` Taylan Ulrich Bayırlı/Kammer
2015-11-03 15:21   ` David Kastrup
2015-11-03 15:26     ` David Kastrup
2015-11-03 19:37   ` Artyom Poptsov [this message]
2015-11-03 19:47     ` Artyom Poptsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871tc6yivo.fsf@elephant.savannah \
    --to=poptsov.artyom@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=taylanbayirli@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).