[Issue 13912] Offer to 'import missing packages' like C# and Java

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 10 00:20:14 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=13912

--- Comment #4 from Manu <turkeyman at gmail.com> ---
(In reply to Rainer Schuetze from comment #3)
> Let's see if Mono-D can do it, we might then be able to do it, too ;-)
> 
> More seriously, with the current rush to use selective local imports, a
> little more interaction might be necessary to select where to put that
> import. Also, adding to existing imports might be desirable...

Yeah you're right, it's a lot more comprehensive than C# :)

I can imagine some nice solutions, but yeah, quite a few details.
There are 4 states I can imagine, global/local (ie, import placed in local
function) and whole-module/single-symbol.

There would want to be logic such that single-symbol imports would be appended
to a comma separated list of other symbols that may already be import from the
same module.

The 4 states that the user may select may be a little awkward for ui :)

--


More information about the Digitalmars-d-bugs mailing list