3 ms·
The level of verbosity in modern C++ is almost approaching Java levels these days. I could see a simpler language gain favour.
by moonshinefe 11y ago
The level of verbosity in modern C++ is almost approaching Java levels these days. I could see a simpler language gain favour.
- gonzo41 11y agoThe trick is to not use all the features.
- gilgoomesh 11y agoIt's actually the lack of features that's the problem for verbosity in C++. Features like algebraic types, pattern matching, Unicode handling – which are all part of modern languages – require bloated libraries and templating upon templating to work in C++. C++'s apparent excess of features is mostly due to the fact that its memory model and type system have hundreds of edge cases that need handling. Compared to D, Rust and other newer languages, C++ never actually feels full featured (despite being horribly complex in some areas).
- creshal 11y agoThe beauty of C++ is that you can define an arbitrarily small subset of the standard that work as simpler language of its own! Too bad not two projects can agree which subset.
- DanWaterworth 11y agoSounds like someone needs to rigorously define a good subset then write a tool to verify that a program uses only that subset.
- lucozade 11y agoAs if by magic.... https://isocpp.org/blog/2015/09/bjarne-stroustrup-announces-cpp-core-guidelines https://isocpp.org/blog/2015/09/bjarne-stroustrup-announces-...
- bryanlarsen 11y agoWow, that's huge. It's what everybody's doing anyway, but being standardized with big names and heavy hitters behind it makes it much easier to advocate and argue for. Such an effort would be so much easier to advocate for in a C++ shop, and more importantly, very difficult to argue against. This deserves a proper HN discussion. I've resubmitted it, it missed the front page the first time around: https://news.ycombinator.com/item?id=10545921 https://news.ycombinator.com/item?id=10545921 (sorry for the karma stealing, lucozade totally deserves the karma if my resubmission takes off)
- creshal 11y agoI suspect it'll end like this: http://xkcd.com/927/ http://xkcd.com/927/
- richev 11y agoIsn't the verbosity all about job security? ;) http://harmful.cat-v.org/software/c++/I_did_it_for_you_all http://harmful.cat-v.org/software/c++/I_did_it_for_you_all
- otabdeveloper1 11y agoThis hasn't been true since C++11. C++11 is as terse as ML.
- deleted 11y ago[deleted]
- pjmlp 11y agoYou got it wrong. Before J2EE was a thing, there were something called CORBA and COM and mainly used from C++.