Skip to content

Release v1.2.0: Support for Identical Ok and Error Types

Choose a tag to compare

@ttheghost ttheghost released this 12 Nov 20:11
· 11 commits to main since this release

This release introduces an improvement to the Result class, enabling support for cases where the Ok and Err types are identical (e.g., Result<int, int>). This was achieved by refactoring the internal storage, which also resolved several related bugs.

Features

  • Support for T == E: The Result class now fully supports instantiations where the success and error types are the same.

Testing

  • Added new Google Tests to specifically validate and cover the T == E use case.