Skip to content

RFC: socket runtime three-state result#228

Merged
SeanTAllen merged 1 commit into
mainfrom
socket-runtime-three-state-result
May 13, 2026
Merged

RFC: socket runtime three-state result#228
SeanTAllen merged 1 commit into
mainfrom
socket-runtime-three-state-result

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

Replace the SIZE_MAX sentinel returns from the five PONY_API socket runtime functions with a three-state result enum (OK/RETRY/ERROR) plus a size_t* count_out out-parameter.

A working implementation is available at ponylang/ponyc@99bc8324. It sits on top of PR ponylang/ponyc#5002, the broader work to remove pony_error from the runtime.

Replace the SIZE_MAX sentinel returns from the five PONY_API socket
runtime functions with a three-state result enum (OK/Retry/Error)
plus a size_t* count_out out-parameter. Implementation at
ponylang/ponyc@99bc8324, on top of PR #5002.
@ponylang-main ponylang-main added status - new The RFC is new and ready for discussion. discuss during sync Should be discussed during an upcoming sync labels May 1, 2026
@jemc jemc added the status - final comment period The RFC is finalized. Waiting for final comments. label May 6, 2026
@SeanTAllen
Copy link
Copy Markdown
Member Author

Approved.

@SeanTAllen SeanTAllen merged commit 6568e04 into main May 13, 2026
9 checks passed
@SeanTAllen SeanTAllen deleted the socket-runtime-three-state-result branch May 13, 2026 20:18
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status - final comment period The RFC is finalized. Waiting for final comments. status - new The RFC is new and ready for discussion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants