javascript function which provides an organized way to expose public functions without thinking about objects.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
LICENSE
README Fix parens Aug 29, 2011
index.html
namespace.js

README

namespace
an Erlang inspired method for organizing functions

Simple example

    (function(){
      namespace("example", public);
    
      function private(){ return "private" };
      function public(){ private(); };
    }());
    
    example.public() // -> "private"


See http://jweir.github.com/namespace for documentation