[r6rs-discuss] [Formal] Inappropriate number of values should be defined

From: Marcin 'Qrczak' Kowalczyk <qrczak>
Date: Mon Jan 22 10:11:32 2007

John Cowan <cowan_at_ccil.org> writes:

> If an expression supplies too many values to its continuation,
> the excess values are discarded. If it supplies too few values,
> the deficient values are set to the unspecified value.
>
> In particular, this paves the way to eliminating "the unspecified value"
> in favor of simply returning zero values.

I would prefer to leave this undefined (detected as an error in safe mode)
*and* replace most uses of the unspecified value with zero values.
This allows to detect dubious code like:
   (let ((x (if y (z))))
     ...)

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak_at_knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/
Received on Mon Jan 22 2007 - 10:09:46 UTC

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