proposal: improved import declaration

eao197 eao197 at intervale.ru
Wed May 30 06:40:04 PDT 2007


On Wed, 30 May 2007 09:36:45 +0400, David B. Held  
<dheld at codelogicconsulting.com> wrote:

> eao197 wrote:
>> [...]
>> import tango.io.{Console, Conduit, FilePath, FileSystem, Stdout};
>
> I like Java's syntax better:
>
> import tango.io.*;
>
> It's not as precise, but once you import more than two or three modules,  
> you might as well do the whole namespace.

I think it's better to have both improvements, because

import some.really.big.package.*

is not a good idea if I want only 3 or 5 modules from package with  
20+ modules and deep hierarchy.

-- 
Regards,
Yauheni Akhotnikau



More information about the Digitalmars-d mailing list