fix(result): Result<T> hash collision

A success result wrapping a value whose GetHashCode is 0 (e.g. Result<int>
with 0) collides with a failure result, both hashing to 0.
This commit is contained in:
Louis Seubert 2026-07-12 18:32:16 +02:00
commit fbbe94bfa8
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
3 changed files with 75 additions and 3 deletions

View file

@ -48,6 +48,7 @@ To have a consistent experience across all packages, some public interfaces have
### Fixed
- **request.result:** Correct the namespace in the `Prelude` doc comment (`Geekeey.Extensions.Result``Geekeey.Request.Result`)
- **request.result:** Fold `IsSuccess` into `Result<T>.GetHashCode` to avoid collisions between a failure and a success value whose hash is `0`
### Removed