Global mutable slice?

Also, just to point out… the var here means that the slice itself is mutable (you can redirect it at different memory), but you can do this:

const slice: []u8 = buffer[0..]; 

And you can still modiffy the underlying buffer. See this for more info: Mutable and Constant Pointer Semantics