Re:Ranges, Code Quality, and the future of C++
by muterad_murilax on Wednesday December 26, 2018 @03:34PM
(#18764649)
Is modern C++ the new Ada?
[ Parent
| on HN ]
Re:Ranges, Code Quality, and the future of C++
by notacoward on Wednesday December 26, 2018 @11:40PM
(#18767362)
No. Ada might be too complicated, but it's far more coherent. C++ is like a novel with each sentence written by a different author. Even worse, each author keeps trying to pull the plot and the characters in a very different direction. Any C++ codebase that spans more than one version of the C++ standard ends up combining the two into its own special dialect, defeating the whole purpose of having standards in the first place.
Re:Ranges, Code Quality, and the future of C++
by Koshkin on Wednesday December 26, 2018 @04:17PM
(#18764997)
I think the biggest difference between Ada and C++ is that much of the functionality in C++ is implemented in the form of libraries vs. something that is built into the language itself. Character strings is the most obvious example, but there are many others (such as concurrency primitives). Personally, I am not sure which way is better: on the one hand, a good language should, indeed, give the programmer powerful means of abstraction; on the other hand, it might be beneficial if the language grammar could somehow directly absorb, in time, things of unquestionable value - so that the construct's syntax could be simpler or more natural, or, perhaps, so that the compiler could employ better optimization techniques.
Re:Ranges, Code Quality, and the future of C++
by topspin on Wednesday December 26, 2018 @06:31PM
(#18765795)
> Is modern C++ the new Ada?
I don't know much about Ada except what experience I've had with PL/SQL, which is supposedly related to it.
I found myself counting the number of characters I'd have to change to get that first C++ snippet to evaluate as ES6.