3 ms·
Assuming there is no state shared between them, they are basically equivalent in function. Perhaps there is an advantage to namespaces regarding call overhead b
by cudgy 4y ago
Assuming there is no state shared between them, they are basically equivalent in function. Perhaps there is an advantage to namespaces regarding call overhead but that would be implementation dependent.
Some languages do not provide namespaces but do provide classes, so static methods are all that is available.