logoalt Hacker News

WalterBrightlast Sunday at 5:14 PM1 replyview on HN

Zig:

    const std = @import("std");
D:

    import std;

Replies

brabellast Sunday at 6:04 PM

I think this is not equivalent because in D, this imports all symbols in the package `std` while in Zig, you just get a "struct" called `std`. I think the equivalent D is:

    import std=std;
show 1 reply