Le 22/12/2011 18:36, Andrei Alexandrescu a écrit : > On 12/22/11 11:29 AM, Jacob Carlborg wrote: >> On 2011-12-22 17:50, Andrei Alexandrescu wrote: >>> On 12/22/11 4:40 AM, Jacob Carlborg wrote: >>>> It would break code, but it's better to break it sooner than later. >>>> Seems more and more like D should support importing all modules in a >>>> package, that Java does: >>>> >>>> import foo.*; >>> >>> I think this style is currently discouraged in Java. >>> >>> Andrei >> >> Well, it seems like everyone wants it and there are several libraries >> that supports "import foo.all;" to include the whole "foo" package, >> including some of my own. > > The authors of Java apparently thought the same. It is _experience_ with > the actual feature that turned out to be bad. Last time I used Eclipse > it underlined with red the lines with .*. > > > Andrei
Yes, this style *is* discouraged in Java. In Python as well. Modern IDE's like eclipse do all the tedious work automatically for you, so it's no longer a pain to have the full list of imports.