Hacker News new | ask | show | jobs
by nindalf 2143 days ago
The only thing I can think of is modules, which C++20 is planing to introduce. But I would be very surprised if anyone was accusing anyone else of "stealing" ideas. It's preposterous because 1. every language copies good features from others (that's a good thing) and 2. Rust has copied a lot from C++.

I wish people wouldn't talk about one or two people with a warped view as "the community".

5 comments

3. Everyone I've met from the rust community is super explicit that Rust has stolen as many good ideas that it could find, and that that is a good thing.
> Rust has copied a lot from C++.

I think this is exactly the thing: if you come from C++ it's very obvious that they drew a lot of inspiration from there (I won't use a charged term like "copied"). But I get the impression that people who got into rust without learning C++ first are largely unaware of this. Or, even if they had worked with c++ but missed the boat on raii and smart pointers.

> I wish people wouldn't talk about one or two people with a warped view as "the community".

At least in the quoted sections, they weren’t talking about the opinions of the rust community, but rather those of someone from the Rust community.

My point is that saying "Rust community" implies that this person represents the community in some way or worse, is representative of the community. Neither is true. It's just some random person with no credentials. That person is no more the Rust community than I am the HN community. Imagine how you'd feel if people made assumptions about you based on what nindalf said that one time.
C++ modules have been a thing for a long time even if the standard is being presented this year.

It is not a C++ idea anyway, older languages have had similar facilities.

Additionally, just because C++ "had it" doesn't mean it was done anywhere close to well.
Modules have existed far before rust e.g in javascript, python, Java, etc
Those are valid examples, but modules are much older than that: https://en.wikipedia.org/wiki/Modular_programming#History

It really shows Stroustrup's point on how most of these programming concepts have been around for a long time.