|
|
|
|
|
by pjmlp
1830 days ago
|
|
Who mentioned anything about breaking existing code? I already decided in 1992 that I don't want to use a broken language, unless when obliged by university work or work requirements. Unfortunely I have to use software written by people that don't share that opinion and apparently WG14 also has a general policy that improving C safety doesn't matter. |
|
You did, when you proposed writing &array[0] to get the address to the first element of an array.
Or maybe I misunderstand what you wrote, in which case you could clarify.
> Unfortunely I have to use software written by people that don't share that opinion and apparently WG14 also has a general policy that improving C safety doesn't matter.
What would WG14 be doing differently if they didn’t have this “policy”? Isn’t the obvious explanation that their top priority is to maintain compatibility with existing code? Is this explanation not satisfactory?
It seems absurd—in the extreme—to expect a standards committee to break large swaths existing code to improve safety, in a language with such a large amount of legacy code such as C. I would expect that if the standards committee chose to do that, compilers wouldn’t implement it and users wouldn’t use it. If you are going to break existing code, why not use a different language?