is "import std;" a valid approach or a violation of the D programming language?
Imperatorn
johan_forsberg_86 at hotmail.com
Sun May 9 20:57:56 UTC 2021
On Sunday, 9 May 2021 at 20:20:15 UTC, Berni44 wrote:
> On Thursday, 6 May 2021 at 22:36:05 UTC, Dennis wrote:
>> Note that it is discouraged to use outside scripts / small
>> applications, because every time a new symbol is added into
>> Phobos, there is potential it could clash with one of your own
>> symbols.
>
> The executable is also much larger. I compared
>
> ```
> import std;
>
> void main()
> {
> }
> ```
>
> with
>
> ```
> void main()
> {
> }
> ```
>
> 2.9 MB vs 860 KB. (I wonder, what rubbish this is, that is put
> in the first executable.)
It would be nice if we got real selective imports...
More information about the Digitalmars-d
mailing list