std.essentials

Basile B. b2.temp at gmx.com
Mon May 17 09:09:07 UTC 2021


On Saturday, 15 May 2021 at 11:25:33 UTC, Ogi wrote:
> DMD 2.086.0 introduced `import std`. This is very convenient 
> for scripts and small apps. The downsides are compile time, the 
> resulting file size, and pollution of global namespace.
>
> ...
> 
> To try it out, I created a file that looks like this:
>
> ```
> module essentials;
>
> public {
> 	import std.traits;
> 	import std.range;
> 	import std.algorithm;
> 	import std.array;
> 	import std.string;
> 	import std.typecons;
> 	import std.stdio;
> 	import std.conv;
> 	import std.format;
> 	import std.exception;
> }
> ```


perfect idea for a DUB package /s


More information about the Digitalmars-d mailing list