4 ms·
> Perhaps an array is better than a slice, so `immutable [...]byte` Slice is the right choice, I think. Were they to choose array as the alias, the language w
by tomjakubowski 10y ago
> Perhaps an array is better than a slice, so `immutable [...]byte`
Slice is the right choice, I think. Were they to choose array as the alias, the language would need to "bubble up" the "array length" type parameter to the string type, which would make strings of different byte lengths incompatible types. But hey, Go is already pretty clearly inspired by Pascal, so maybe we'll see that after all :-)