logoalt Hacker News

Maxataryesterday at 7:56 PM0 repliesview on HN

No you are baking data into the compiled program so that you can perform compile time operations on that data. These compile time operations are most often used to guard against erroneous runtime behaviors.

If all you want to do is bake data into a compiled program, there is the #embed feature added to C++26.