Hacker News new | ask | show | jobs
by neilv 500 days ago
> Here’s a basic example showing off some of its core properties

Why not make the string literals in the code identify their positions in the output, to expose the behavior, rather than obfuscate it?

Then the reader only has to work through the code, to see why it would have that order.

It currently looks like a puzzle intended to be harder for the reader to understand than it needs to be.

2 comments

I was thinking it might be clearer with defer printf("2"); printf("1"); for example.
Agreed, the example immediately made me see it as an example for the Obfuscated C contest.