Beta 2.079.0

Seb seb at wilzba.ch
Fri Feb 23 01:51:29 UTC 2018


On Friday, 23 February 2018 at 01:34:54 UTC, Rubn wrote:
> On Friday, 23 February 2018 at 00:05:59 UTC, Martin Nowak wrote:
>> - each imported module should be on it's own line
>>
>>   That's your opinion, my opinion is that importing 6 symbols 
>> from 6 different modules for a tiny cli tool sucks and bloats 
>> code example. So the alternative is to not use selective 
>> imports, but only those and static imports have a clear path 
>> to become lazy 
>> (https://issues.dlang.org/show_bug.cgi?id=13255).
>
> This can be solved by adding a package.d to phobos. This 
> doesn't need a language change that introduces more ambiguities 
> for such a subjective matter as "I'm too lazy to write 5 more 
> lines of code". 5 Lines of code is hardly bloat for a code 
> example. Example code is better to follow best practices, or 
> you get the whole `using namespace std` situation like you do 
> with C++. The people that actually can comprehend won't be 
> hindered by it, and everyone else it won't make a difference 
> cause they have no understanding of what they are doing and 
> just copy and paste the code.

Yes, with 2.079 those who want, can do `import 
std.experimental.all` [1].
(It has been renamed from scripting to all since the prerelease 
changelog was created)

In later versions, it might be renamed to std/package.d, but we 
first want to assess whether there are potential problems except 
the potential collisions and potential decrease in 
"understandability". Anyhow, `experimental` is a good playground 
for such tests.

[1] 
https://dlang.org/changelog/2.079.0.html#std-experimental-scripting


More information about the Digitalmars-d-announce mailing list