DEV Community

LG
LG

Posted on

1

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)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more