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

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 13 16:21:23 PST 2016


On 14.12.2016 01:14, Andrei Alexandrescu wrote:
> On 12/13/16 6:03 PM, 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.)
>
> That is a problem. I switched to the most attractive alternate syntax.
> https://github.com/andralex/DIPs/blob/2e5859c0f64ac4949123fe8de39ccf2ccf72d859/DIPs/DIP1005.md
>
>
>
> Andrei
>

I'd still advise to match the syntax of other import declarations. What 
justifies the difference? (Note that import(foo.bar.baz) is a string 
import.)


More information about the Digitalmars-d mailing list