Hacker News new | ask | show | jobs
by jmcdiesel 3128 days ago
There is a reason for that, though.

There is no reason to import what you don't need. This is why wildcard imports are generally frowned upon in most development teams. (I say most, thats unqualified, of course, but from my experience, its always been a part of the code standards)

Your code is much more readable and clear when you are explicit about what you are importing.

1 comments

"module.doSomething()" is more explicit than "doSomething()"