Skip to content
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

Update examples for Zig #287

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Update examples for Zig #287

wants to merge 6 commits into from

Conversation

kind84
Copy link
Contributor

@kind84 kind84 commented Aug 2, 2024

This PR updates the code examples for the Zig programming language.

Those examples where introduced in #242 but, since the Zig language is evolving at fast pace, they needed some adjustments:

  • Replaced var with const for non-mutated variables
  • Better implementation for Dijkstra's algorithm
  • Removed async/await syntax as it is (temporarily) not provided any more by the language. Replaced by threads
  • Updated standard library names and signatures
  • Other small improvements

The code has been tested using zig version 0.14.0-dev.577+3344ed8b8.

@kind84 kind84 changed the title Update examples for Zig language Update examples for Zig Aug 14, 2024
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.

1 participant