[Top][All Lists]

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

Re: Name spaces in programming languages

From: Ludovic Courtès
Subject: Re: Name spaces in programming languages
Date: Fri, 28 Oct 2005 10:47:10 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

"Alfred M\. Szmidt" <address@hidden> writes:

> Huh? Most lisp derivatives and scheme implementations have globally
> shared mutable namespaces, there are hacks (as you note) to confie
> things a bit, but that usually involves running a new repl, or telling
> top-repl to ignore things.  But all in all, it is still a globally
> shared mutable namespace.  If it wasn't, it would be a pita to use
> lisp.

Nope.  In Guile, there is no such thing as a globally shared mutable
name space: each module has its own set of bindings.  There _are_
bindings that are usually shared across modules, namely "core bindings".

In any case, the whole point of functional languages is to consistently
avoid relying on side-effects.  Mutability is one such side-effect.
Depending on bindings defined in a globally accessible, mutable name
space is another one.


reply via email to

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