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

John Cowan cowan at ccil.org
Mon Jan 22 11:11:23 EST 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



More information about the r6rs-discuss mailing list