Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

9 replies

feddit.uk

make([] [] byte, 0)

Does this make a double nested byte array of size 0?

As in, every element is made up of two iterators (adjacent cell, and then the nested cell), but the first element doesnt exist yet?

10
lemmy.world

This looks like Go, so I think this would be a 2d array (or slice as Go calls it) of bytes, with starting length 0. Go has an optional 3rd parameter for capacity

13

Interesting, thanks! I find it weird for it to be assigned to a buffer variable if no initial fixed size is given

4
Owlreply
mander.xyz

I mean the inquisition

(If you answer spain I’m gonna make you eat a life-sized crucifix)

11

You reached the end