I wonder if there is a good reason for this optical mismatch between e. g. pattern matching, which uses a simple
case foo =>
to denote that no action should be taken.
Wouldn’t it be reasonable to have something like
import foo.bar.{Baz => }
instead of
import foo.bar.{Baz => _}
considering that _ is used as an “import everything” in the same statement?
I would suggest it’s for symmetry with renamed imports:
If we want to import to an inaccessible identifier:
(I know,
_is a valid identifier, but on the right hand side of=>you should think of it as a black-hole from which the incoming identifier cannot escape.)