| ▲ | bunderbunder 2 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It seems that part of what Zig is trying to do, though, is create a pit of success around these practices. So the response might be something like, “Yes you can do these things in modern C, but doing it consistently requires more discipline than we’d like.” https://blog.codinghorror.com/falling-into-the-pit-of-succes... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | uecker 2 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I do not think it needs a lot of discipline. It needs the willingness to do it, but this is also true for adopting a different language. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | pjmlp 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Most of those practices were already available out of the box in languages like Object Pascal and Modula-2, or languages that predated C for a decade. C authors created lint for similar reasons. It has always been a social problem, getting some class of developers to actually care. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | slopinthebag 2 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
might as well use rust and fall into a much wider and deeper pit of success | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||