News for hackers. Stuff that matters.
Re:C++ Frequently Questioned Answers (2009) by jcelerier on Monday January 24, 2022 @02:53AM (#30054660)
Not having that would mean no access to the Windows SDK, no access to a libc, the macOS frameworks, etc. It's far from negligible. It takes other languages years to wrap the OS APIs correctly, if they even do it.

Why would CV members be insane ? Having const members has been very useful for me when refactoring codebases, to make sure that I knew every place modifying such a member. It has never been a hindrance, just plain positive, and not having it would mean one more rule to remember (and having to explain students why you can write "const int foo;" here and not there)

Re:C++ Frequently Questioned Answers (2009) by tialaramex on Monday January 24, 2022 @06:29AM (#30056248)
Uninitialized constant foo

They actually can't (well, shouldn't) write "const int foo;" as a local variable because the compiler needs to know its value. And that gives the game away.

These are already different cases, yes both the structure member and the local variable are names with types, but they already need to be explained separately.