okuoku / yuni

R7RS/R6RS/Generic Scheme portability platform
Other
32 stars 3 forks source link

SIBR: Cannot handle and-or loop of incohelent value counts #89

Open okuoku opened 7 years ago

okuoku commented 7 years ago
(import (yuni scheme))

(call-with-values (lambda ()
                    (define (itr cur)
                      (or (and (pair? cur) (values 1 2))
                          (itr (cdr cur))))
                    (itr '(1 2 3 4)))
                  (lambda (a b) (display (list a b)) (newline)))

I think it should say (1 2) but let's consult R5RS.

okuoku commented 4 years ago

Hmm.. no clearly agreed answer:

--
-- Summary:
--
--     OK : DIGAMMA
--     ERR: GUILE3
--     OK : SAGITTARIUS
--     OK : CHIBI_SCHEME
--     ERR: CHICKEN5_CSI
--     OK : GOSH
--     OK : KAWA
--     ERR: CHEZ_SCHEME
--     ERR: GUILE
--     ERR: RACKET
--     OK : GSI
--     OK : MIT_SCHEME
--     ERR: S7

On considerable counts of Scheme, and and or is not multiple-value capable.

At least, it is not Chicken specific.