Beta 2.079.0

Joakim dlang at joakim.fea.st
Sat Mar 31 07:12:07 UTC 2018


On Saturday, 31 March 2018 at 00:25:47 UTC, Seb wrote:
> On Tuesday, 20 February 2018 at 08:43:50 UTC, Martin Nowak 
> wrote:
>> On Monday, 19 February 2018 at 15:58:57 UTC, Joakim wrote:
>>> 17. Allow multiple selective imports from different modules 
>>> in a single import statement
>>>
>>> I have a bad feeling that that one is going to be a source of 
>>> a raft of bugs for years to come.
>>
>> No need to use it if you don't like it. It's particularly 
>> useful for small examples, localized imports and hacking.
>> It's mainly a generalisation of the existing possibility to 
>> mix module imports and one selective import at the end.
>> If you prefer java-like 50 lines import manifests, then by all 
>> means keep using those.
>> How would that feature cause bugs though?
>
> AFAICT Rust now has introduced the exactly same feature. It's 
> quite interesting to see that there was no outcry by the 
> community and it was universally liked:
>
> https://blog.rust-lang.org/2018/03/29/Rust-1.25.html
> https://github.com/rust-lang/rust/issues/44494

As meppl says, they require braces, which the D version didn't, 
so not "exactly same." Besides look at that horrid syntax even 
before this addition, drowning in colons, they seem to carry over 
some of the worst punctuation style from C++. About the only good 
thing I can say about it is that 'use' is a better, shorter 
keyword than 'import.'


More information about the Digitalmars-d-announce mailing list