Why use a different pointer dereference operator than C?

*u8 is a type (pointer to single byte)
[]u8 is also a type, slice of bytes

In my logic (more general/important/primary things should go first) it’a quite ok.
In *u8 pointer is primary, u8 is secondary.
In []u8 slice is primary, u8 is secondary (compare with C’s u8 a[] - it’s actually awful - type-name-array)

1 Like