Zig:
fn ArrayListType(comptime T: type) type {
T ArrayListType(T)() {
Why is omitting the fact that T is a type useful? T could be a normal value too.
This reminds me of C in the 1970s where the compiler assumed every typo was a new variable of type int. Explicit is good.
I don't know D but shouldn't that be
struct ArrayListType(T) { ?
Why is omitting the fact that T is a type useful? T could be a normal value too.
This reminds me of C in the 1970s where the compiler assumed every typo was a new variable of type int. Explicit is good.