Why packages and namespaces?

liorean liorean at gmail.com
Sun Jan 27 23:45:36 PST 2008

I think Brendan had a nice explanation of that some time back:

On 10/08/2007, Brendan Eich <brendan at mozilla.org> wrote:
> There's more work to do, including rationalizing and minimizing
> concepts including units and packages. A couple of notes:
> A package is a named pair of namespaces (public and internal), some
> rules for using those namespaces within the package body, and some
> special forms for importing names from the package's public namespace.
> Program units are compilation units, so unlike packages, which are
> never "closed" and can be extended in a given trust domain, units
> come to an end at the right curly brace.
> /be
David "liorean" Andersson

More information about the Es4-discuss mailing list