On 16/06/2024 18:54, Andreas Hennings wrote:
Yes, the possibility for namespace part imports exists.
Unfortunately these namespace imports usually need to be set up
manually, whereas the regular class or function import has better
automatic support from the IDE.
Also, namespace fragments are often more generic than function names,
so more likely to need a custom alias.


That's why I said it was tricky: the language doesn't prevent IDEs suggesting different imports; nor does it require you to name namespace fragments differently from classes; but that's what happens in practice. So to what extent do we build the language based on how it *can* be used, and to what extent do we build it based on how it *is* used? What if that usage changes over time? What if we add more ways to do it, and those aren't used either? I don't think there's an easy answer.


--
Rowan Tommins
[IMSoP]

Reply via email to