Skip to content

[FEAT] Add Expected<void> specialization#673

Merged
tqchen merged 1 commit into
apache:mainfrom
Kathryn-cat:kathrync/expected-void
Jul 16, 2026
Merged

[FEAT] Add Expected<void> specialization#673
tqchen merged 1 commit into
apache:mainfrom
Kathryn-cat:kathrync/expected-void

Conversation

@Kathryn-cat

Copy link
Copy Markdown
Contributor

This PR adds Expected for operations that can succeed without returning a value. Success uses the canonical FFI None representation, while failures retain ffi::Error.

It extends ExpectedUnsafe and TypeTraits for Expected, adds Function::CallExpected support with result validation, and includes tests covering construction, access, FFI conversion, error propagation, and typed function integration.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@Kathryn-cat
Kathryn-cat force-pushed the kathrync/expected-void branch from 2a75c56 to d405f5d Compare July 16, 2026 22:55
@tqchen
tqchen merged commit a849ee3 into apache:main Jul 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants