3 ms·
I don't know if there's a good solution to this because ignoring the current directory would only solve the first order problem but all those package names wou
by Spivak 4y ago
I don't know if there's a good solution to this because ignoring the current directory would only solve the first order problem but all those package names would still be essentially reserved, you'll just get bit less often, and you'll have to add your own code into the path explicitly. I think forcing relative imports and adding a new syntax for "project absolute" imports is the real way forward but is totally infeasible because it break everyone's code.
- autoexec 4y agoIt'd also be much improved if the names of scripts could never be confused for the names of packages... maybe a new file extension like packagename.pm (to steal from perl)? It'd require an update to package names, but nobody would have to update their code.