[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: tcp-read-timeout: procedure or parameter?
From: |
William Xu |
Subject: |
[Chicken-users] Re: tcp-read-timeout: procedure or parameter? |
Date: |
Mon, 07 Jul 2008 20:25:09 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) |
Tobia Conforto <address@hidden> writes:
> The benefits of parameters are dynamic scoping and thread safety.
>
> Contrary to function arguments and let forms, parameters are dynamically
> scoped, much like global variables, or "special variables" in other lisp
> dialects. This is very handy for setting and querying generic, global
> configuration items, without "passing state" explicitly between function
calls,
> which is what parameters (and global variables) are commonly used for.
>
> Contrary to global variables, parameters are thread-local, so every thread has
> its own set of parameter values.
>
> The combination of these two features makes parameters very useful.
Thank you for your explanation.
So this sounds like bringing back dynamic binding into scheme...
--
William
http://williamxu.net9.org
Nature is by and large to be found out of doors, a location where,
it cannot be argued, there are never enough comfortable chairs.
-- Fran Lebowitz