News for hackers. Stuff that matters.
Re:Obvious Things C Should Do by dccsillag on Saturday January 11, 2025 @07:56PM (#42670248)
If I'm not mistaken, the treatment of forward declarations proposed in the article actually breaks the C standard, which would be a rather pressing concern. As far as I am aware, that is the reason why things are the way they are right now in C land.

(In the past, there were more legitimate concerns on the ease of implementation. Nowadays, as the article points out, they are pretty moot, other than having to keep backwards-compatibility.)

I'm also rather bothered that on the bit on const execution in the article, there was no discussion on how to deal with functions that may not terminate or take rather long to execute. Especially considering the unit tests motivation, this seems like a rather blaring omission.

Re:Obvious Things C Should Do by WalterBright on Saturday January 11, 2025 @09:29PM (#42670754)
How does it break the C Standard?

> how to deal with functions that may not terminate or take rather long to execute

Control-C, the same as when running any executable that shouldn't be taking that long. It doesn't solve the halting problem :-/

Re:Obvious Things C Should Do by UncleEntity on Saturday January 11, 2025 @11:25PM (#42671267)
So a single typo DDoSes the entire Red Hat buildbot fleet?
Re:Obvious Things C Should Do by kstenerud on Saturday January 11, 2025 @11:40PM (#42671321)
You set a timeout, like in any robust CI.