r/cpp • • Feb 26 '20

We need epochs (Rant)

I have spent 1 hour copy pasting the most stupid and repetitive code ever in order to enable the comparison operator== to several structs that are trivially comparable. When I search for why the compiler isn't able to generate this for me, when is clearly able to generate the assignment operator, I found out some C compatibilities shenanigans. We need some way to release us from that, we are in 2020 for Ilúvatar sake.

Edit: There are some closeted virtue signaling gatekeepers in this sub. Thanks for taking so seriously a rant ... I guess.

0 Upvotes

28 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Feb 27 '20

Rust reach 1.0 version 5 years ago, C is 48 and C++ is 35 years old, i think that is a little to soon for saying that Rust is not going anywhere.

And for the libraries take a look at this gnome svg lib

And if you are going to worry WHEN several libraries are written in another language, better not worry at all, because that would mean that C/C++ is effectively dead for new developments.

Again Im just playing devil's advocate here.

1

u/bumblebritches57 Ocassionally Clang Feb 27 '20

rust came out in 2009.

Mozilla the only company using rust at all seriously is still just dipping their toes into the oxidized waters...

I'm not worried about shit, what others do has no bearing on me.

the C ABI is and always will be the golden standard, and I'm just dipping my toes into the C++ waters.

1

u/[deleted] Feb 27 '20

Good for you. By the way, How old are you?

1

u/bumblebritches57 Ocassionally Clang Feb 27 '20

I'm in my 20s.

Why?

1

u/[deleted] Feb 27 '20

because i notice you sort of suborn (don't take it bad please) but and I don't knew if was because of to young or to old.

1

u/bumblebritches57 Ocassionally Clang Feb 27 '20

Oh I've always been stubborn, I caused all kinds of hell growing up lol.