News for hackers. Stuff that matters.
Re:Deducing This by gumby on Thursday March 18, 2021 @11:30AM (#26503676)
> The problem statement is well-defined and C++ is the language that cares about these details

It's an actual programming langauge (rather than a research project) so includes a number of convenience functions and guard rails. Thus 'final' lets you tell the compiler your intention (this is "caring about the details", a kind of guard rail) yet the compiler will already synthesize a bunch of functions for you, either completely (e.g. default constructors) or partially (selecting which template to expand). You can dispute the branch cuts but can't claim that a choice is inherently wrong.

C++ "suffers" because of a very strong (but not absolute) commitment to backward compatibility.

One reason the standard seems bloated is it includes a lot of features that are mostly or even entirely for library writers, as well as a lot of features for system programming not used by most developers. You can write your Java runtime in C++ but you can't write the C++ runtime in Java. They languages are intended for different purposes and in that regard you can't really say one is "better" than the other.

I consider features like this to be in the "reduce programmer opportunity for error" class of improvement, which I personally favor.

There are no comments on this comment yet.