Problems of C, and how Zig addresses them

3 years ago by jumpstart to c/c_lang

What are the problems of C, and how Zig addresses them?
MooseBoys 0 points 3 years ago

A bit late to the party. Anyone wanting “C but better” is moving to Rust.

path: 0 780278, hotness: undefined, score: 0, children: 4
einsteinx2 11 points 3 years ago

I haven’t don’t much programming in Rust yet, but just based on the syntax and apparent complexity (at least it looks quite complex to an outsider like me) it always seemed more like “C++ but better” rather than “C but better”.

path: 0 780278 800838, hotness: undefined, score: 11, children: 0
rmam 5 points 3 years ago
path: 0 780278 783206, hotness: undefined, score: 5, children: 1
MooseBoys 0 points 3 years ago

I’m not saying Rust is better - I prefer c/cpp myself. I’m just saying that if someone is going to move away from c to a new language, it’s overwhelmingly more likely to be Rust.

path: 0 780278 783206 787678, hotness: undefined, score: 0, children: 0
offbyone 4 points 3 years ago

I haven't used Zig myself but I think it could have its place. IMO Rust has moved too far away from C to be something many existing users will move to (and using both in the same project is messy), but Zig seems to integrate well enough that it might.

path: 0 780278 791167, hotness: undefined, score: 4, children: 0
c_lang
c_lang

@programming.dev

login for more options
1359
104
40

Welcome to the C community!

C is quirky, flawed, and an enormous success.
... When I read commentary about suggestions for where C should go, I often think back and give thanks that it wasn't developed under the advice of a worldwide crowd.
... The only way to learn a new programming language is by writing programs in it.

© Dennis Ritchie

🌐 https://en.cppreference.com/w/c

go to feed...