[r6rs-discuss] Re: "Unspecified"

From: Dan Muresan <dan-r6rs>
Date: Wed Sep 20 19:11:57 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
Received on Wed Sep 20 2006 - 19:11:48 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC