DIP10005: Dependency-Carrying Declarations is now available for community feedback

Chris M. via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 13 17:07:11 PST 2016


On Tuesday, 13 December 2016 at 23:03:39 UTC, Timon Gehr wrote:
> On 13.12.2016 23:33, Andrei Alexandrescu wrote:
>> Destroy.
>>
>> https://github.com/dlang/DIPs/pull/51/files
>>
>>
>> Andrei
>
> 1. The syntax is ambiguous.
>
> Is import.foo.bar.baz the symbol baz in module foo.bar, or the 
> symbol bar.baz in module foo?
>
> I'd prefer syntax like (import foo.bar).baz and (import 
> foo).bar.baz. (I.e., the syntax of import expressions would 
> closely mirror that of import declarations, and would be 
> unambiguous.)
>

Why not something like import foo.bar : baz or import foo : 
bar.baz to distinguish between module and symbol? It's already 
used anyway.

Also I like Yuxuan's idea, the other ideas seem to add more 
clutter after the function name


More information about the Digitalmars-d mailing list