Skip to content

fix(loop): replace catch unreachable with try in self_hosting_loop.zig init#162

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

fix(loop): replace catch unreachable with try in self_hosting_loop.zig init#162
gHashTag merged 1 commit into
mainfrom
feat/issue-159

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

  • Replace catch unreachable with try for ArrayList initialization in SelfHostingSession.init() (lines 199-200)
  • Allocation can fail, so proper error propagation is required instead of asserting impossibility

Test plan

  • zig ast-check src/tri/self_hosting_loop.zig passes
  • No catch unreachable on ArrayList initCapacity in the file

Closes #159

🤖 Generated with Claude Code

…g init (#159)

Replace unsafe `catch unreachable` with `try` for ArrayList initialization
in SelfHostingSession.init(). Allocation can fail, so error propagation is
required instead of asserting impossibility.

Closes #159

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gHashTag gHashTag merged commit 7a44bb2 into main Mar 11, 2026
5 of 6 checks passed
gHashTag added a commit that referenced this pull request Mar 18, 2026
fix(loop): replace catch unreachable with try in self_hosting_loop.zig init
@gHashTag gHashTag deleted the feat/issue-159 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(loop): replace catch unreachable with try in self_hosting_loop.zig init

1 participant