3 ms·
Arrays can be modified, but their size is a part of their type, just like C. For slices, length is only known at runtime, but it's immutable once the slice is
by int_19h 4y ago
Arrays can be modified, but their size is a part of their type, just like C.
For slices, length is only known at runtime, but it's immutable once the slice is created, so there's no issue there, either.