WebAssembly/wasi-filesystem

"Success" error

badeend opened this issue · 0 comments

Interface types has a native type for separating successful results from failures: expected<S, E>.

I suggest removing the success case from the errno enum and also update readdir, read & pread to use stream<u8, expected<unit, errno>> instead of stream<u8, errno>.