mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
Technically there is one valid use case for `fieldNames` which is use with an enum or union so that those types can be used interchangeably. But in practice these functions are mainly abused, because the callsites always know what kind of type it is. This commit encourages Zig users to embrace using `@typeInfo` directly when doing type reflection.
1129 lines
35 KiB
1129 lines
35 KiB