[Issue 14704] The design, which allows not to write import, import, import ... for selective imports

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 17 10:39:35 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14704

--- Comment #9 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
you know what? people invented a great thing called "library", so you can move
the code you're using in various places to the library and stop copypasting it
everywhere.

and yoy know what else is interesting? i found myself stop doing bulk imports.
it's way easier to write a qualified import right in the code block where you
need that, and import only the things you need. bulk imports is a sign of bad
design. stop doing that, local imports rox. your multiline sample should be
burned with fire.

--


More information about the Digitalmars-d-bugs mailing list