chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] unary 'when' and 'unless'


From: Sven Hartrumpf
Subject: [Chicken-users] unary 'when' and 'unless'
Date: Fri, 06 Nov 2015 09:48:39 +0100 (CET)

Hi.

A hidden bug in my code was uncovered by loading it into another
Scheme (guile), which enforced the limitation of 'when' and 'unless'
(in R7RS) to at least one result part.
Chicken accepts 'when' and 'unless' with only one argument:

> csi
CHICKEN
(c) 2008-2015, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.10.1 (rev 9b38189)
linux-unix-gnu-x86 [ manyargs dload ]
compiled 2015-11-02 on sem14 (Linux)

#;1> (when #t)
#;2> (unless #t)

I assume that the extended definition in Chicken is R7RS-compliant,
but a stricter mode (or a harsh warning) would be helpful.

Ciao
Sven



reply via email to

[Prev in Thread] Current Thread [Next in Thread]