News for hackers. Stuff that matters.
Re:The Ten Commandments for C Programmers (1987) by unwind on Saturday May 23, 2020 @01:44PM (#23284861)
This is a pretty well-regarded answer, with motivation for why you should not cast [1].

Of course it's not something everyone agrees to, but at least a lot of people seem to.

[1] https://stackoverflow.com/questions/605845/do-i-cast-the-res...

Re:The Ten Commandments for C Programmers (1987) by throwphoton on Saturday May 23, 2020 @07:31PM (#23287595)
Interesting. Not casting a void pointer return value seems like a bit of a shibboleth for the "C is not a subset of C++" community.
Re:The Ten Commandments for C Programmers (1987) by enriquto on Sunday May 24, 2020 @10:26AM (#23291742)
A "better" shibboleth is using "new" and "old" as identifiers. It serves as a good barrier to avoid accidental C++ compilation.