DEV Community

LG
LG

Posted on

Map-based (functional) namespacing

Motivation

As far as I know PHP is lack of definition of modular namespacing, although PHP \App-like signature of namespaces is one the features I was missing for ages in JavaScript implementation (ECMAScript specification) . However, it seems we can reproduce similar behaviour via Maps since ES6, except that the signature looks more "Erlangish" (i.e. "functional"), code base :


References :

Top comments (0)