Re:Everything in C is undefined behavior
by gpderetta on Wednesday May 20, 2026 @05:31AM
(#48205174)
The issue is that the list is infinite (anything not specified is UB), so actually removing any finite amount of UB from the list won't make it shorter.
(only slightly tongue-in-cheek, I do believe that removing silly things is worthwhile).
Re:Everything in C is undefined behavior
by 1718627440 on Wednesday May 20, 2026 @06:18AM
(#48205510)
The list of UB categories and rules is not infinite. The list of UB programs is, as is the list of all non UB programs.
Re:Everything in C is undefined behavior
by gpderetta on Wednesday May 20, 2026 @07:36AM
(#48206102)
It is not obvious to me that the list of categories is not infinite (unless the final category is "everything else" of course)
Re:Everything in C is undefined behavior
by 1718627440 on Wednesday May 20, 2026 @08:55AM
(#48206905)
To be undefined behaviour, it must at least be valid syntax. The syntax is described in a finite document. Also it only gets executed by a finite machine, that has a finite number of finite descriptive documents.
And it also signals that you actually do want to improve, just a little bit of boy scout rule goes a long way.