4 ms·
Interesting idea, still a bit "stiff" for my taste. I'd allow a few more "modern" tricks but still keep it mostly "C-like" (because it's obvious its main goal w
by acqq 16y ago
Interesting idea, still a bit "stiff" for my taste. I'd allow a few more "modern" tricks but still keep it mostly "C-like" (because it's obvious its main goal was to be immediately readable and editable without the surprises to the C programmers). For example,
n := 1;
s := "abc";
like in Go (and Limbo) as an allowed replacement for
int n = 1;
string s = "abc";
And then the same would function in the for loop:
for ( i := 0; i < 10; i++ ) {
}
(I'd also rather write:
struct dirstats {
int files, size, total_files, total_size;
}
than in four rows member by member.)