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