Skip to content

feat: declare command result types with Binding[Args, OK]#29

Closed
frrist wants to merge 2 commits into
frrist/piri-ucan1from
frrist/binding-ao
Closed

feat: declare command result types with Binding[Args, OK]#29
frrist wants to merge 2 commits into
frrist/piri-ucan1from
frrist/binding-ao

Conversation

@frrist
Copy link
Copy Markdown
Member

@frrist frrist commented May 20, 2026

Carry each command's result type alongside its arguments by migrating declarations to commands.MustParse[*Args, *OK]. Handlers and clients then derive the result type from the command, so result/handler type mismatches are caught at compile time instead of at run time.

Tracks the ucantone bind.Binding[Args, OK] change: fil-forge/ucantone#17

@frrist frrist requested a review from alanshaw May 20, 2026 20:51
@frrist frrist self-assigned this May 20, 2026
@frrist frrist force-pushed the frrist/binding-ao branch 3 times, most recently from 7c80f33 to ee09011 Compare May 20, 2026 21:17
frrist added 2 commits May 20, 2026 14:25
Carry each command's result type alongside its arguments by migrating
declarations to commands.MustParse[*Args, *OK]. Handlers and clients then
derive the result type from the command, so result/handler type mismatches
are caught at compile time instead of at run time.

Tracks the ucantone bind.Binding[Args, OK] change: fil-forge/ucantone#17
@frrist frrist force-pushed the frrist/binding-ao branch from ee09011 to ca9673c Compare May 20, 2026 21:25
Copy link
Copy Markdown
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM when rebased

@frrist
Copy link
Copy Markdown
Member Author

frrist commented May 21, 2026

replaced by #31

@frrist frrist closed this May 21, 2026
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