logoalt Hacker News

Blikkentrekker • today at 9:30 PM • 2 replies • view on HN

It says below that that in cases of things like `io::Error` it should be used as that though, as in “cases of ambiguities”. It specifically speaks of not using `regex::Regex` but just `Regex` which seems more reasonable to me.


Replies

B-Con • today at 11:51 PM

Google's style guides tend to reduce namespace redundancy.

Everyone remembers finding some hideous name like foo.widget.widgetBuilder.widgetFactory in Java or something. It's nice to have naming rules, or at least guidelines, focused on trimming redundancy and keeping the signal high.

epage • today at 10:28 PM

That guideline is in response to an API design. I'm speaking to how the default stance (import types) feeds back into API design.