| ▲ | kelnos 12 hours ago | |
That was my first thought! I never had this problem with Scala (2.x for me, but I guess there's similar syntax/concepts in 3). The article author does talk about naming trait impls and how to use them at call sites, but never seems to consider the idea that you could import a trait impl and use it everywhere within that scope, without extra onerous syntax. Does this still solve the "HashMap" problem though? I guess it depends on when the named impl "binds". E.g. the named Hash impl would have to bind to the HashMap itself at creation, not at calls to `insert()` or `get()`. Which... seems like a reasonable thing? | ||