unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
To: Mark H Weaver <mhw@netris.org>
Cc: 17474@debbugs.gnu.org
Subject: bug#17474: Ping?
Date: Mon, 01 Jun 2015 16:04:25 +0200	[thread overview]
Message-ID: <87twurcyom.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87vbq0qa28.fsf@yeeloong.lan> (Mark H. Weaver's message of "Sun,  10 Aug 2014 18:00:47 -0400")

Mark H Weaver <mhw@netris.org> writes:

> David Kastrup <dak@gnu.org> writes:
>> So you think that it will be more "lightweight" if (values) does not
>> have an immediate representation but rather creates a multiple-values
>> object on the heap?
>
> I don't have time to continue this discussion, but I wanted to respond
> to this one point: there should be a single global
> statically-allocated instance of the multiple-values object containing
> zero values, and the procedures that create multiple-values objects
> would always use that one.

So we are in agreement that a single object (I don't see a meaningful
distinction between "immediate" and "single global statically-allocated"
that is consistently being used) with SCM_NO_VALUES semantics makes
sense.

Where we don't agree is about making it the same as SCM_UNSPECIFIED.  It
is my contention that the concepts for SCM_NO_VALUES and SCM_UNSPECIFIED
overlap too much to offer the user a meaningful distinction allowing him
to make a qualified choice between returning one of the two.

I consider it a good hint that the REPL already considers *unspecified*
and (values) similar enough that it prints exactly the same for either
input, namely nothing.

So I'm pretty convinced that the user is better off without having to
deal with two separate representations of "no useful value".

-- 
David Kastrup





      reply	other threads:[~2015-06-01 14:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12 11:40 bug#17474: Making *unspecified* equivalent to (values) would seem convenient David Kastrup
2014-05-12 15:53 ` Ludovic Courtès
     [not found] ` <8738gfyoxm.fsf@gnu.org>
2014-05-12 16:58   ` David Kastrup
2014-05-12 19:21     ` Ludovic Courtès
2014-05-12 19:49       ` David Kastrup
2014-06-22  5:25       ` Mark H Weaver
2014-06-22  6:09         ` David Kastrup
2014-06-21 21:30 ` bug#17474: Another point David Kastrup
2014-06-22  5:17   ` Mark H Weaver
2014-06-22  5:45     ` David Kastrup
2014-08-09  9:17 ` bug#17474: Ping? David Kastrup
2014-08-10 19:12   ` Mark H Weaver
2014-08-10 20:26     ` David Kastrup
2014-08-10 21:48       ` Mark H Weaver
2014-08-10 22:00       ` Mark H Weaver
2015-06-01 14:04         ` David Kastrup [this message]

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=87twurcyom.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --cc=17474@debbugs.gnu.org \
    --cc=mhw@netris.org \
    /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).