[r6rs-discuss] Re: "Unspecified"

Dan Muresan dan-r6rs at omnigia.com
Wed Sep 20 19:11:48 EDT 2006


> I wonder what would be the tradeoffs of specifying that these
> operations return no values. Besides an obvious disadvantage of

It makes some sense, but it doesn't seem very likely to happen.

> breaking about any Scheme implementation out there, and breaking code
> which had assigned them to variables.

Again, leaving practicality aside, perhaps variables should be able to
store zero, one or multiple values:

(define x (values))
(define x (values 1)
(define x (values 1 2))

(define (f x)
  (define result (values 1 2))
  result)

Makes some sense, right? "First class values"...


Best,
Dan Muresan
http://alumnus.caltech.edu/~muresan



More information about the r6rs-discuss mailing list