Transparent term aliases

It’s not just documentation – here’s a list for the IntelliJ Scala plugin (so far):

All this stems from the semantics – the pattern with two aliases was supposed to be just another way to import things by default, but it’s very different from import as far as IDE is concerned (e.g. if you navigate to an imported name, you navigate to the definition, not to the import statement). If we had some standard way to define a “transparent export”, that would fix these issues automagically.

Of course we can (and will) try to work around this at the IDE side, but it would be great to also address that at the language side, if possible.

2 Likes