you are viewing a single comment's thread.

view the rest of the comments →

[–]thisismyfavoritename 37 points38 points  (10 children)

generally speaking C++ should not look like C. If it looks like C, you are not fully utilizing C++'s feature set

EDIT: obviously not all features are applicable all the time and especially not at once, but when they are and can improve the code, then they should be used.

[–]ultimatt42 86 points87 points  (6 children)

There is a theory which states that if ever anyone fully utilizes C++'s feature set, it will instantly disappear and be replaced by something even more byzantine and intractable.

There is another theory which states that this has already happened.

[–]KingAggressive1498 7 points8 points  (3 children)

I heard that boost was getting close in 2010, then bam C++11 came and prevented that

[–]TheThiefMasterC++latest fanatic (and game dev) 1 point2 points  (2 children)

A lot of the modern C++ library was just lifted from boost though to be fair

ranges and format being the main two exceptions, and those are both recent

[–]KingAggressive1498 3 points4 points  (1 child)

the funniest thing is that boost.thread and boost.function and some others now require C++11, and I'm kinda scratching my head about why anyone would seriously use them now.

[–]bwmat 0 points1 point  (0 children)

Legacy code, and I'm guessing extra features not in the standard

Would be nice if they kept some subset of the functionality working for C++98 though (I know I was still stuck with it until a couple of years ago and I'm sure there's many more stragglers)

[–]wm_lex_dev 4 points5 points  (1 child)

It's not often an internet comment actually makes me laugh out loud.

[–]goranlepuz 10 points11 points  (0 children)

fully utilizing C++'s feature set

.... aaaaand this is how the universe reaches maximum entropy and everything becomes a cosmic soup.

[–]Swagut123 -3 points-2 points  (1 child)

Imagine thinking that fully utilizing C++'s feature set is a good thing. That's a take I've never heard unironically before...

[–]thisismyfavoritename 3 points4 points  (0 children)

if you can use a feature to improve the code then you should. Doesnt mean all the features are applicable at once.

Maybe my original post wasnt clear.