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

From: Martin Gasbichler <gasbichl>
Date: Mon Jan 22 10:14:17 2007

Marcin 'Qrczak' Kowalczyk <qrczak_at_knm.org.pl> writes:

> 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))))
> ...)

I agree.

-- 
Martin
Received on Mon Jan 22 2007 - 10:13:55 UTC

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