3 ms·
Just using modules names as prefixes everywhere instead of importing individual symbols works when modules have short names. Which in turn requires that the mod
by _0w8t 5y ago
Just using modules names as prefixes everywhere instead of importing individual symbols works when modules have short names. Which in turn requires that the modules should be relatively fat so relatively few of those should exist allowing for short and descriptive names.
But in a language like JS where the module cannot span multiple files one quickly runs out of good short names. Then importing individual symbols or at least aliasing the module becomes a necessity.