logoalt Hacker News

tialaramextoday at 12:53 AM0 repliesview on HN

I strongly encourage people writing textual examples in 2026 to use Compiler Explorer.

https://cpp.godbolt.org/

Matt Godbolt's tool lets your reader play with your examples and learn more about what's going on. As a bonus, if it doesn't compile and work in Compiler Explorer now you know early before you hit "publish". It's the same reason you should run a spellchecker, raweht thun jstu hope forr th bess