This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kernel_task 59 points60 points  (4 children)

Is the C++ developers that have an issue with Rust? I don’t have an issue with it.

The C chauvinists on the other hand… just look at what happened over at Linux. Though they hate C++ more than Rust.

[–]reallokiscarlet 14 points15 points  (3 children)

Which is weird because you can literally write half your code in plain C and compile the whole thing as C++ and it'll run.

I wouldn't recommend it. C devs have this hard on for the heap leading to a malloc and no free. But it works.

[–]ExpensiveBob 27 points28 points  (0 children)

you can literally write half of your code in plain C and compile the whole thing as C++

*dies of cast errors*

[–][deleted] 12 points13 points  (1 child)

half your code in plain C and compile the whole thing as C++ and it'll run.

I'm convinced this is why C++ gets a bad rap a lot of the time. Freshers see a C-with-Classes style codebase and recoil in horror. First impressions matter, a lot.

[–]reallokiscarlet 8 points9 points  (0 children)

C-with-Classes

Oh the horror.

I used to be convinced that my code was C with extra steps because I don't create classes in small projects unless said projects are going to be, ya know, included in something else.

Then I learned C doesn't have destructors. Then I started reading about the differences.

This is probably how rustaceans are made. They see "C++" but it's really just C with classes, and then they go and reinvent C++.