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

From: John Cowan <cowan>
Date: Mon Jan 22 11:11:34 2007

Marcin 'Qrczak' Kowalczyk scripsit:

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

But then you can no longer write things like:

    (begin
      (if (debug-mode?) (display "About to call foo\n"))
      (foo))

because when debug-mode? returns false, the if will return zero values
to the continuation created by begin.

-- 
Yes, chili in the eye is bad, but so is your    John Cowan
ear.  However, I would suggest you wash your    cowan_at_ccil.org
hands thoroughly before going to the toilet.    http://www.ccil.org/~cowan
        --gadicath
Received on Mon Jan 22 2007 - 11:11:23 UTC

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