C++98 vs. C++20

preview_player
Показать описание
#shorts

Рекомендации по теме
Комментарии
Автор

The issue isn’t that the syntax isn’t nice enough. The issue is that there are too many ways to do everything, so reading code is a pain in the ass cause you need to know everyone’s favorite ways of doing things

maboesanman
Автор

C++ is a bit like a Swiss army knife that's been retrofitted to also include a full CNC machine and professional French kitchen.

danchovanes
Автор

C++ in production and C++ in books and universities are two different things)))

Автор

Just like in biology everything eventually evolves to crab, in IT, everything evolves to bash script.

giganetom
Автор

Or in C99
for ( int i = from; i < to; ++i ) { if ( predicate(data[i]) ) printf(data[i]); }

Not that I disagree that C++20 is clearer than C++98, we just have different mentality about what simplicity is.
That said: great hair!

e
Автор

This isn't actually a rust concept. It exists in most functional languages - Clojure, Elixir, F# to name a few.

neoplumes
Автор

C++20 trying its best to be better than ever before
Rust: *You're about 36 years late*

krtirtho
Автор

Plot twist: he recorded that video to show us his earring 0:03

chillappreciator
Автор

At times it feels like modern C++ is a completely different language.

Tibor
Автор

Advantages using plain C:
+ Simpler syntax
+ Less redundant hidden library calls
+ Smaller executable
+ Easy-to-manage function exports
+ No export mangling that makes VC++ incompatible with G++
... and more.

muB
Автор

I'd really love a new C++ subset language that removed features and maybe added some formatting standards too. Sometimes less is more.

The language has gotten to the point where I prefer reading plain C.

Edit: clarity

bitmasked
Автор

This comment was edited as it wasn't correct. See discussion below for details.

Original comment:
~~~C++20 variant uses unneeded memory allocations and maybe calls copy constructors. Last one is unclear. There's nothing wrong with C++20 itself, but you still have to think when you use it. Otherwise there is not much sense in using C++. You'll just lose all performance benefits with a sloppy code like this.~~~

rinat
Автор

Jesus this language has turned into a nightmare.

penguin
Автор

I guess c++, removed its rust, to become like rust

alphaprimal
Автор

Meanwhile in India, we are still taught using Turbo C++.
S
M
H

adershvarshnei
Автор

Can someone give me resources to the C++20 example lines 18–22? I feel like reading an entirely different language lol

Fauzan
Автор

"this code is hard to understand", bro you are using three lines for a for statement wtf

Mariomm_marti
Автор

"In c++ 20 we can just say what we want to do"... erm, yeah - as we did in c++98

jorisbonson
Автор

i don't get the unreadable argument . how hard is it to read a for loop or the function name . and deduce it from that . i feel like we've come to the point of beating a dead horse in countless ways . these javascript devs have made it illegal to write a regular for loop in favor of "functional" . no thanks keep your functional higher order bs out of my face .

ahmadbaderkhan
Автор

Functional programming really is taking over imperative

CallumAtwal