[plt-scheme] fluid-let vs. parameterize
Fluid-let is for variables and parameterize is for parameters (two
different places to hold state). If you look at the expansion, you'll
see that they do essentially the same thing for those two different
places to hold state.
parameters are different than variables in that parameters have
thread-local state, but there is only one (global to all threads)
variable.
hth,
Robby
At Wed, 25 Feb 2004 11:34:18 -0500, Doug Orleans wrote:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> What's the difference between fluid-let and parameterize (aside from
> the syntax)? Does fluid-let deal with threads the same way? If not,
> is there a situation where you'd want to to use fluid-let instead of
> parameterize? I'm currently using fluid-let for dynamic scoping, but
> I'm thinking parameterize might be better, and I can't really tell
> from the MzScheme manual what the practical advantages would be.
>
> --dougo at place.org
>