Re:Practical Foundations of Mathematics
by Joker_vD on Thursday February 27, 2025 @11:29AM
(#43195840)
C arguably doesn't actually have formal semantics, the struggles of the standard committee trying to figure out the pointer provenance being one obvious example.
Re:Practical Foundations of Mathematics
by rramadass on Thursday February 27, 2025 @11:43PM
(#43201776)
C does have formally defined semantics as given by the standard but chose to leave some open-ended to give compiler writers more freedom in the form of a) Unspecified behaviour b) Implementation defined behaviour and c) Undefined behaviour.
PLT is not one theory but a set of theories from which you are free to pick and choose any subset you would like to model in your language's abstract machine and syntax/semantics.
C simply chose a "minimal theory" and there is nothing wrong with that.