Get the latest tech news
I'm too dumb for Zig's new IO interface
Karl Seguin's Blog - A mix of coding and creative writing
And it relied on a mix of types, which always confused me, and a lot of anytype- which is generally great, but a poor foundation to build an interface on. It has a peak a takeByteSigned, a readSliceShort(which seems close, but it blocks until the provided buffer is full), a peekArray and a lot more, but nothing like the read I'd expect. I feel a bit more confident about the weirdness of not having a read(buf: []u8) !usize function on Reader, but at this point I wouldn't bet on me.
Or read this on Hacker News