On 12/22/11 3:32 PM, Jacob Carlborg wrote:
On 2011-12-22 18:36, Andrei Alexandrescu wrote:
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

Really? I have not seen that. I have Eclipse 3.7.0 installed and it
doesn't indicate and error with "import package.*;". Latest Eclipse is
3.7.1.

I stand corrected (it was a while ago and my memory is hazy). Found a related discussion at http://stackoverflow.com/questions/1983435/eclipse-java-is-it-harmful-to-import-java-namespace

Andrei

Reply via email to