[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] "unspecified values"
- To: Andy Wingo <wingo@x>
- Subject: Re: [Scheme-reports] "unspecified values"
- From: Jim Rees <jimreesma@x>
- Date: Thu, 19 May 2011 14:50:47 -0400
- Cc: scheme-reports@x
- In-reply-to: <email@example.com>
- References: <firstname.lastname@example.org> <4DD540F3.email@example.com> <firstname.lastname@example.org>
On Thu, May 19, 2011 at 1:10 PM, Andy Wingo <wingo@x>
I do not agree with the note that permitting any number of values to be
returned from `set!' et al is incompatible. It is not incompatible with
implementations, as it widens the scope of what they may do.....
Requiring a single unspecified value means that:
(let ((x (if #f 'never))) <stuff that does not depend on x>)
is legal Scheme code (based on the interpretation that initializers *must* return a single value, unspecified or not).
So, allowing implementations to return multiple or zero unspecified values would actually shrink the language from what it used to be. This is what I observe the WG tries very hard to avoid, especially if "lots of existing code" depends on the status quo.
I know nothing about the existing code that depends on this particular feature. I would personally have preferred "any number", as it's handy for detecting buggy code.
Scheme-reports mailing list