5 ms·
It's funny the single example you provide to back up your point is plainly wrong. The syntax Go went with is obviously better and every modern language uses it
by Mawr 2y ago
It's funny the single example you provide to back up your point is plainly wrong. The syntax Go went with is obviously better and every modern language uses it too, Rust, Zig, you name it.
- School-Cotton 2y agoRust at least doesn’t. let x: usize = 42;
- Mawr 2y agoI now realize I had misread and the parent poster did explicitly say that "thing: String" is fine but "thing String" is not. An odd hill to die on.