Lurker News
really not a loaded question. personally i prefer to write in c or zig. what about you?

Comments (28) 27 threads

Earlier comments
daveads51 reply#
Every programming language has its use case.

It’s something I still believe, even now, in the age of AI.

selectedambient#
oh absolutely without a doubt, possibly even more so with llms
mirmor23#
I do not understand the value proposition of Zig.

Very good build tooling was huge plus, but now with llm this is not a differentiator anymore.
With strict c compiler flags, and other sanitizer tools many of the niceties of zig can be solved - maybe not all.
Two big items -- RAII, and memory safety -- neither Zig, not C solves them. Rust does.
So, I would choose C or Rust based on the needs.
Also, if someone here have a compelling reason as to when/why Zig is useful in professional grade projects, where the language has to scale to large codebases, I would like to hear it.

cryptolobster#
For larger projects, I tend to choose Rust more often, but in truth, the best choice depends more on the task at hand than on the programming language itself.
mikewarot#
Pascal for me. The case sensitivity and inscruitible variable and type syntax of C/C++ don't match the way I think. Then there's all the macros and .h files.

Load more comments