I feel like I'm still looking for "the other shoe" in zig: there doesn't seem to be anything like an interface type.
To make this rather, ahem, abstract ask concrete, here's what I want to do:
- write a function that takes a reader and a writer, but idc what kind of reader/writer implementation is used
- in particular, I want to call it with stdin/stdout streams from main
- but from in-memory FixedBufferStream / ArrayList streams in a test block
Maybe this is possible, but nothing in the learning / docs have shown me an example like this so far using something like an interface type?