2 ms·
Consider it a reaction to something else than what might be the true point of this comment. Nothing wrong about that. And that point is pretty much a straw man
by jstimpfle 7y ago
Consider it a reaction to something else than what might be the true point of this comment. Nothing wrong about that.
And that point is pretty much a straw man, intentionally cherry-picked and obfuscated. The type signature in my signal(3) manpage is given as
typedef void (*sighandler_t)(int);
sighandler_t signal(int signum, sighandler_t handler);
And functions taking and returning function pointers are exceedingly rare. In practice I still find C type syntax the easiest to read (it's so concise, and in fact there is almost no type synax because it's just expressions). The valid argument for me why we should move away from that syntax is tooling - the syntax is hard to parse for machines (but not for humans) because it requires serial reading and complete preprocessing from the start of the file.