Skip to content

feat: update to zig-0.14#75

Merged
nolanderc merged 4 commits intonolanderc:mainfrom
stefanboca:sb/push-xrtvnsowpyqp
Mar 20, 2025
Merged

feat: update to zig-0.14#75
nolanderc merged 4 commits intonolanderc:mainfrom
stefanboca:sb/push-xrtvnsowpyqp

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