logoalt Hacker News

Y_Ylast Sunday at 6:53 PM1 replyview on HN

Ambiguous parse. I don't mean that all function types are fancy, I mean that some are fancy (when you have a function pointers in the arguments or return value, or several layers of indirection), and that those which are fancy are helped by typedefs.


Replies

Tweylast Sunday at 7:57 PM

I maintain — they shouldn't be fancy. ‘Fancy’ is the mark of something your language doesn't support well. They can be _long_, and that's often worth breaking up, but if something is ‘fancy’ it's because it's not clear to read, so you should attach some identifier to it that explains what it's supposed to mean. That's significantly, though not exclusively, a function (ha) of the syntax used to express the concept.

If you're working with Roman numerals, division is a very fancy thing to do.

show 1 reply