chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] deprecation of always?, never?, none?


From: Peter Bex
Subject: Re: [Chicken-hackers] deprecation of always?, never?, none?
Date: Mon, 22 Aug 2011 16:02:48 +0200
User-agent: Mutt/1.4.2.3i

On Mon, Aug 22, 2011 at 03:59:01PM +0200, Felix wrote:
> > I don't understand how any? is different. 
> 
> Like this:
> 
> (define (any? x) #t)
> 
> (define (none? x) #f)                 ; DEPRECATED
> (define (always? . _) #t)             ; DEPRECATED
> (define (never? . _) #f)              ; DEPRECATED
> 
> "none?" is sort of weird, since there is no "none" type - every object
> is of some type.

Ah, they're for type checking; I didn't understand that.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth



reply via email to

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