HACKER Q&A
📣 herodoturtle

Most elegant code you’ve ever seen?


Such as JC’s fast inverse square.


  👤 john_the_writer Accepted Answer ✓
Already answered in the other thread..

But I still think string copy from c is the most beautiful code I've seen..

   while (*p++ = *q++);

👤 mtmail
related "Ask HN: What's the most elegant piece of code you've seen?" https://news.ycombinator.com/item?id=11005003

👤 pizza
I think the surface of the strength and beauty of functional lenses has barely been scratched.

👤 u2077
My own code when it finally works?