DIP16: Transparently substitute module with package
Jacob Carlborg
doob at me.com
Sat Apr 7 09:45:15 PDT 2012
On 2012-04-07 02:25, Jonathan M Davis wrote:
> On Friday, April 06, 2012 08:09:28 Steven Schveighoffer wrote:
>> I feel like most people will still import the main package module, and not
>> the submodules. I don't think I ever wrote a piece of java code that
>> didn't have:
>>
>> import java.io.*;
>
> Which is actually considered bad practice in Java, though a lot of people do
> like to do it. What's generally considered good practice is to explicitly
> import every module/class, and Eclipse likes to underline imports in red if
> you don't.
import foo.bar.*
Is used all over the place in SWT.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list