chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH][5] Move foldable binding annotations into


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH][5] Move foldable binding annotations into types.db
Date: Wed, 1 Oct 2014 08:57:14 +0200
User-agent: Mutt/1.4.2.3i

On Tue, Sep 30, 2014 at 12:33:21AM -0700, Evan Hanson wrote:
> So, I audited the whole lot of `foldable-bindings`, and in doing so
> moved them into types.db as #:foldable properties for clarity.

Thanks for putting so much effort into this!

> It's also safe to fold predicates, so rather than redundantly mark all
> of those procedures redundantly, I've made #:predicate imply #:foldable
> in the optimizer.

Shouldn't the same be done for #:pure?  If a procedure is purely
functional, it should be referentially transparent, which means it
should be foldable.  Or am I overlooking something here?

Cheers,
Peter
-- 
http://www.more-magic.net



reply via email to

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