Hacker News new | ask | show | jobs
by trevex 2949 days ago
There is also a language called zig[1], which popped up on hckrnews a few times in the past. I didn't have the chance to try it out, but am following the blog.

From what I can gather, it supports compile time code execution and reflection, so no preprocessor necessary. Furthermore it has a lot of safety features and optional checks, a nullable type instead of null value and manual memory management but also provides a `defer` statement.

[1] https://ziglang.org

1 comments

Memory safety is an explicit non-goal of Zig, or at least it was previously. It tries to help, but makes no guarantees.