Skip to content

feat: update to zig-0.14 #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 20, 2025
Merged

feat: update to zig-0.14 #75

merged 4 commits into from
Mar 20, 2025

Conversation

stefanboca
Copy link
Contributor

@stefanboca stefanboca commented Mar 20, 2025

Update to Zig 0.14.

Most changes involve straightforward renames of standard library types.

The only nontrivial change is regarding pop. Based on my understanding:

  • In 0.13, calling pop() on an empty collection would panic.
  • In 0.14, popOrNull() has been renamed to pop(), which now returns an optional value. Using pop().? will also panic if the value is null.

Therefore, migrating from pop() in 0.13 to pop().? in 0.14 should preserve the original behavior. However, I'm not very knowledgable about Zig so I recommend verifying this to ensure accuracy.

@nolanderc
Copy link
Owner

Thanks! I was looking to do this myself some day, but you beat me to it 🙂

@nolanderc nolanderc merged commit 2c2bef5 into nolanderc:main Mar 20, 2025
9 checks passed
@stefanboca stefanboca deleted the sb/push-xrtvnsowpyqp branch March 20, 2025 21:34
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