Skip to content

fix(query): replace 5 catch unreachable with try in tri_query_commands.zig#164

Merged
gHashTag merged 1 commit into
mainfrom
feat/issue-163
Mar 11, 2026
Merged

fix(query): replace 5 catch unreachable with try in tri_query_commands.zig#164
gHashTag merged 1 commit into
mainfrom
feat/issue-163

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

  • Replace 5 instances of catch unreachable on allocator calls with try for proper error propagation
  • Updated function return types from BipolarBigInt to !BipolarBigInt for bindHRR, unbindHRR, bind, unbind, and bundle
  • Updated all callers to use try for proper error handling

Test plan

  • zig fmt src/ passes
  • zig build query -- --list compiles and runs correctly
  • zig build query -- Paris capital_of returns expected result
  • No catch unreachable on allocator calls remains in the file

Closes #163

🤖 Generated with Claude Code

…s.zig (#163)

Replace unsafe catch unreachable on allocator calls with proper error
propagation using try. Changed functions:
- bindHRR: return !BipolarBigInt, use try on alloc
- unbindHRR: return !BipolarBigInt, use try on alloc and bindHRR call
- bind: return !BipolarBigInt, use try on alloc
- unbind: return !BipolarBigInt, use try on bind call
- bundle: return !BipolarBigInt, use try on alloc

Also updated all callers to use try for proper error propagation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gHashTag gHashTag merged commit 8af6a7e into main Mar 11, 2026
5 of 6 checks passed
gHashTag added a commit that referenced this pull request Mar 18, 2026
fix(query): replace 5 catch unreachable with try in tri_query_commands.zig
@gHashTag gHashTag deleted the feat/issue-163 branch April 3, 2026 10:59
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.

fix(query): replace 5 catch unreachable with try in tri_query_commands.zig

1 participant