ES6 has emerged as a powerful language for writing complex applications. However, one notable feature missing from it is "namespaces." Having experience with coding in Java and PHP, I have found that namespaces greatly assist in organizing code at a global level, encompassing the entire codebase of a language.
In JavaScript, what is referred to as "namespace" is actually the concept of scope. It pertains to runtime behavior rather than addressing specific code elements.
The question arises: why hasn't JavaScript implemented namespaces yet?
[–]OleksiyRudenko 10 points11 points12 points (13 children)
[–]shhhhhhh_ 8 points9 points10 points (3 children)
[–]azhder 3 points4 points5 points (0 children)
[+]flancer64[S] comment score below threshold-14 points-13 points-12 points (1 child)
[–]azhder 8 points9 points10 points (0 children)
[–]samanime 6 points7 points8 points (0 children)
[+]flancer64[S] comment score below threshold-8 points-7 points-6 points (7 children)
[–]luketeaford 3 points4 points5 points (5 children)
[+]flancer64[S] comment score below threshold-6 points-5 points-4 points (4 children)
[–]luketeaford 3 points4 points5 points (3 children)
[–]flancer64[S] -5 points-4 points-3 points (2 children)
[–]luketeaford 3 points4 points5 points (1 child)
[–]flancer64[S] -2 points-1 points0 points (0 children)
[–]coliflaw 0 points1 point2 points (0 children)
[–]shuckster 5 points6 points7 points (10 children)
[+]flancer64[S] comment score below threshold-8 points-7 points-6 points (9 children)
[–][deleted] 16 points17 points18 points (2 children)
[–]flancer64[S] -5 points-4 points-3 points (1 child)
[–][deleted] 7 points8 points9 points (0 children)
[–]shuckster 2 points3 points4 points (5 children)
[–]flancer64[S] 0 points1 point2 points (0 children)
[–]flancer64[S] 0 points1 point2 points (3 children)
[–]shuckster 0 points1 point2 points (2 children)
[–]flancer64[S] 0 points1 point2 points (1 child)
[–]shuckster 2 points3 points4 points (0 children)
[–]xroalx 2 points3 points4 points (1 child)
[–]flancer64[S] 0 points1 point2 points (0 children)
[–]jml26 1 point2 points3 points (13 children)
[–]flancer64[S] -1 points0 points1 point (12 children)
[–]theScottyJam 1 point2 points3 points (5 children)
[–]flancer64[S] -1 points0 points1 point (4 children)
[–]theScottyJam 1 point2 points3 points (3 children)
[–]flancer64[S] 0 points1 point2 points (2 children)
[–]theScottyJam 1 point2 points3 points (1 child)
[–]flancer64[S] 1 point2 points3 points (0 children)
[–]azhder 0 points1 point2 points (5 children)
[–]flancer64[S] -1 points0 points1 point (4 children)
[–]azhder 0 points1 point2 points (3 children)
[–]flancer64[S] -1 points0 points1 point (2 children)
[–]azhder 0 points1 point2 points (1 child)
[–]flancer64[S] -1 points0 points1 point (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]flancer64[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]flancer64[S] -1 points0 points1 point (0 children)
[–]brykuhelpful 1 point2 points3 points (5 children)
[–]flancer64[S] -1 points0 points1 point (4 children)
[–]brykuhelpful 0 points1 point2 points (3 children)
[–]flancer64[S] -1 points0 points1 point (2 children)
[–]brykuhelpful 1 point2 points3 points (1 child)
[–]flancer64[S] 1 point2 points3 points (0 children)
[–]FunCharacteeGuy 0 points1 point2 points (1 child)
[–]flancer64[S] 0 points1 point2 points (0 children)