Just curious: why is static more performant than let?

Yes, and worst of all, we still end up with things in a public API that look like this:

#define BOOL int

Which is just a big mess, considering the entirety of the cpp program is piled into a virtual file through #include statements before compilation.

1 Like

I thought that #define is only valid till the end of the physical file in which it was #defined. But yes, there are many good reasons to avoid preprocessor macros in C++, because most of the cases where you would still want to use it in C has better alternatives in C++. (But we’re probably getting a little off-topic here.)

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.