guile-devel
[Top][All Lists]
Advanced

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

(cond (else => display))


From: Dirk Herrmann
Subject: (cond (else => display))
Date: Sat, 13 Oct 2001 17:33:01 +0200 (MEST)

Hello,

what should the result of (cond (else => display)) be?  Currently it is
#t, which is because memoization transforms the else to #t.

IMO:

(define => 'foo)
(cond (else =>))
 --> 'foo
(cond (else => display))
 --> #<primitive-procedure display>

This would require to change the memoization not to transform the else to
#t (in order to be able to distinguish it from a user given clause 
(#t => display), and to change the evaluator accordingly.

Opinions?

Best regards
Dirk Herrmann




reply via email to

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