News for hackers. Stuff that matters.
Re:PHP 8.4 by inglor_cz on Thursday November 21, 2024 @06:27AM (#42203213)
"Else you end up with frankenstein code where every file could use a different style."

Yeah, this is a huge problem, but also, in the long run, inevitable.

Plenty of Kernighan & Ritchie C code still out there...

Re:PHP 8.4 by wbl on Thursday November 21, 2024 @02:10PM (#42207557)
Almost none: ANSI was over 30 years ago and enough of an improvement people switched. If you mean C89 then yes, loads of it.
Re:PHP 8.4 by skissane on Friday November 22, 2024 @03:07AM (#42212004)
It helps there are automated tools for converting old style K&R function declarations to the new ANSI/ISO style, like protoize.

But K&R C is now so dated, protoize was removed from GCC 4.5 and onwards. When (in a bout of idiosyncrasy) I wanted to convert some ancient K&R C to new style a couple of years back, I ended up putting GCC 4.4 in a Docker container to make it easier: https://github.com/skissane/protoize