logoalt Hacker News

WalterBrightlast Sunday at 5:09 PM4 repliesview on HN

    const x: i32 = 92;
D has less syntax:

    const int x = 92;
Just for fun, read each declaration out loud.

Replies

IshKebablast Sunday at 5:24 PM

"less syntax" isn't necessarily better. The goal isn't to have as few characters as possible.

show 3 replies
WalterBrightlast Sunday at 5:16 PM

Zig:

    fn ArrayListType(comptime T: type) type {
D:

    T ArrayListType(T)() {
show 2 replies
WalterBrightlast Sunday at 5:14 PM

Zig:

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

    import std;
show 1 reply