News for hackers. Stuff that matters.
Re:My Very First Production Bug by sltkr on Wednesday June 12, 2024 @12:07PM (#40659673)
Because `constexpr` was not supported in C until very recently (C23).

And `static const` by itself is not a good alternative, because constants can't be used in a lot of places, for example when declaring the size of an array.

Re:My Very First Production Bug by nj5rq on Wednesday June 12, 2024 @05:41PM (#40663501)
Constants can be used for array sizes since a lot of C standards ago, right?
Re:My Very First Production Bug by PhilipRoman on Thursday June 13, 2024 @04:19AM (#40667205)
They end up as a VLA which may or may not be what you want.