diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-09-30 18:11:27 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-10-03 14:55:17 -0700 |
| commit | d8540dd7084b225566e67d60dafe0566309a8d51 (patch) | |
| tree | 6387dfdf54474d525a062d44aac86baf6e6f587a /lib/std/math.zig | |
| parent | 4df7f7c86a0a105b5d3764121f259a39487a6c8a (diff) | |
| download | zig-d8540dd7084b225566e67d60dafe0566309a8d51.tar.gz zig-d8540dd7084b225566e67d60dafe0566309a8d51.zip | |
std: add type-erased reader; base GenericReader on it
The idea here is to avoid code bloat by having only one actual io.Reader
implementation, which is type erased, and then implement a GenericReader
that preserves type information on top of that as thin glue code.
The strategy here is for that glue code to `@errSetCast` the result of
the type-erased reader functions, however, while trying to do that I
ran into #17343.
Diffstat (limited to 'lib/std/math.zig')
0 files changed, 0 insertions, 0 deletions
