Re:Zig: Upcoming Release Postponed Two More Weeks and Lacks ...
by pornel on Wednesday July 19, 2023 @12:15PM
(#36788826)
No, there still are sync and async versions of functions. Zig just implicitly chooses which version to run and implicitly inserts await points. There's still a runtime and event loop if you use async. It's an async like in any language, but it relies on compiler magic instead of having locally explicit syntax.
[ Parent
| on HN ]
Re:Zig: Upcoming Release Postponed Two More Weeks and Lacks ...
by matu3ba on Wednesday July 19, 2023 @12:28PM
(#36789054)
One can check this via static analysis as the complete code tree can be inferred with relative ease (only package paths and usingnamespace are depending on comptime) + third party code will be able to query compiler info, so I do not expect this to be a big problem once static analysis symbols can be enforced as unique (see https://github.com/ziglang/zig/issues/14656#issuecomment-143... and follow-up for the use cases of static analysis tooling).
Also, since there is currently no problem: YAGNI and solve it once a use case comes up.