3 ms·
> There are correct programs written in C++ How do you know correct? Very few pieces of software are subject to full theorem-prover correctness, and very few p
by pjc50 3y ago
> There are correct programs written in C++
How do you know correct? Very few pieces of software are subject to full theorem-prover correctness, and very few pieces of C++ are completely free from ever invoking "undefined behavior" at runtime. Because that's extremely hard to do when even "x = x + 1" can be UB.
- AnimalMuppet 3y agoBy that standard, how do you know correct programs are written in any language? I seem to recall you praising JOVIAL a week or two ago; well, how many full theorem-prover correct programs were written in JOVIAL? I would guess, zero. Don't hold C++ programs up to a standard that programs in other languages also can't pass.
- pjc50 3y ago> I seem to recall you praising JOVIAL a week or two ago Think you have the wrong person? I have no idea what this refers to.
- AnimalMuppet 3y agoWell, I'll take your word on it. I was working from memory, not looking at a particular post. I apologize for the inaccurate claim. Back to the larger point: How many Rust programs meet your proposed level of "correctness"? How many Fortran programs, Java programs, Python programs? Virtually none of our software does. Why hold C++ to a standard that nothing else meets either?