diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-10-05 05:34:52 -0700 |
|---|---|---|
| committer | Cody Tapscott <topolarity@tapscott.me> | 2022-11-10 12:24:02 -0700 |
| commit | 7b978bf1e05727f15fc83ae7d2455c08833cc439 (patch) | |
| tree | 61648de296eb45d762d0bc8440d144a32dea896d /lib/std/testing.zig | |
| parent | b1357091ae0876645d75a608bd1e26f21cec7c13 (diff) | |
| download | zig-7b978bf1e05727f15fc83ae7d2455c08833cc439.tar.gz zig-7b978bf1e05727f15fc83ae7d2455c08833cc439.zip | |
stage2: Rename `Value.compare` to `compareAll`, etc.
These functions have a very error-prone API. They are essentially
`all(cmp(op, ...))` but that's not reflected in the name.
This renames these functions to `compareAllAgainstZero...` etc.
for clarity and fixes >20 locations where the predicate was
incorrect.
In the future, the scalar `compare` should probably be split off
from the vector comparison. Rank-polymorphic programming is great,
but a proper implementation in Zig would decouple comparison and
reduction, which then needs a way to fuse ops at comptime.
Diffstat (limited to 'lib/std/testing.zig')
0 files changed, 0 insertions, 0 deletions
