[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
Thu Jun 18 07:34:49 PDT 2015


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

--- Comment #24 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
(In reply to dennis.m.ritchie from comment #20)
> (In reply to Ketmar Dark from comment #19)
> > (In reply to dennis.m.ritchie from comment #17)
> > > Do you agree that one of the directions D - is to write less code than
> > > required C++?
> > nope. 
> 
> Quote of the documentation:
> `The main "chip" of the language can be considered as an abundance of
> syntax, intended to reduce the program's source code (templates, mixins,
> etc.) and a variety of keywords to test and debug code.`
> http://wiki.dlang.org/Reading_the_documentation_%28in_Russian%29#.D0.92.D0.
> B2.D0.B5.D0.B4.D0.B5.D0.BD.D0.B8.D0.B5
> 
> Many people believe that a short code is a distinctive chip D. If you do not
> think so, then I have to assume that your quibbles are absolutely groundless.

that is not what you asked, and that doesn't means what you think it means.

> > (In reply to dennis.m.ritchie from comment #18)
> > > `If we have shorthand syntax for full imports, why there is no option for
> > > shorthand partial imports? This is expected behavior.`
> > > 
> > > What is not an argument?
> > this is not an argument, this is exactly the "i wan't it 'cause i want it".
> 
> In order to make something better, to find bold argument :)

"better" has no universal definition, so this is not an argument.

> If you like to write 50 lines instead of 10, it does not make you some kind
> of guru, and the people who come up with the right design to Go - code
> monkeys.

  import a;
  import b;
  import c;

three lines.

import {
  a;
  b;
  c;
}

five lines.

i think that discussion can be closed now.

--


More information about the Digitalmars-d-bugs mailing list