onyx-lang / onyx

✨ The compiler and developer toolchain for Onyx
https://onyxlang.io
BSD 2-Clause "Simplified" License
576 stars 21 forks source link

Feature:`io.Stream` uses `Result` instead of multiple return values #139

Closed brendanfh closed 7 months ago

brendanfh commented 7 months ago

This pull requests changes the core.io.Stream abstraction to use Result types for return values, instead of multiple return values. This is more consistent with the rest of the standard library and self-explanatory to the meaning of the return values.