logoalt Hacker News

wimltoday at 3:47 PM1 replyview on HN

*foo++ (and --) is an extremely common C idiom. I'd argue it's clearer than the separated version.


Replies

14113today at 3:52 PM

As I experienced while trying to write out an AST for this pattern, the operator precedence makes it harder to read. I would at least prefer that it's written as *(foo++).

show 1 reply