News for hackers. Stuff that matters.
Re:Why Not Just Do Simple C++ RAII in C? by pjmlp on Thursday May 23, 2024 @03:13AM (#40451496)
As proven multiple times throughout the computing history, individual tools are optional, and as such used less often than they actually should be.

Language specification is unavoidable when using said language.

Re:Why Not Just Do Simple C++ RAII in C? by lstodd on Thursday May 23, 2024 @04:45AM (#40452183)
mwahahaha. as if there is some divine "language specification" which all compilers adhere to on pain of eternal damnation.

no such thing ever existed.

Re:Why Not Just Do Simple C++ RAII in C? by pjmlp on Thursday May 23, 2024 @05:23AM (#40452444)
Given that one can write Fortran in any language, maybe you're right.
Re:Why Not Just Do Simple C++ RAII in C? by fooker on Thursday May 23, 2024 @02:16PM (#40458000)
Have you wondered why Rust or Python do not have a specification?

For a bunch of languages outside the C-centric world, specifications don't exist.

Re:Why Not Just Do Simple C++ RAII in C? by fooker on Saturday May 25, 2024 @06:07PM (#40478208)
Documentation and specification are not the same things.

The intuitive distinction is that the second one is for compiler/library developers, and the former is for users.

A specification can not leave any room for ambiguity or anything up to interpretation. If it does (and this happens), it is treated as a bug to be fixed.