[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] environments egg
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] environments egg |
Date: |
Fri, 26 Jan 2007 15:34:01 +0100 |
On 1/26/07, Daishi Kato <address@hidden> wrote:
Hi
Out of curiosity,
What's the use of (make-environment #f) ?
Well, to create an empty, non-extendable environment! ;-)
Seriously, not overly useful - but who knows. R5RS has a
"null-environment", too. Note that evaluating these environments
still can make use of syntax, so you can create some sort of
controled evaluation context:
(eval '(lambda (+ - * / ...) ...) <empty-environment>)
=> a function with a fixed set of bindings
I haven't seen many real-world uses of this, though.
cheers,
felix