> 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