3 ms·
Hostile, but not more. C++ isn't completely unlike every other language people have been using for decades.
by bE9a3S5So8igd3 6y ago
Hostile, but not more. C++ isn't completely unlike every other language people have been using for decades.
- HideousKojima 6y ago>C++ isn't completely unlike every other language people have been using for decades. Neither is Rust, most of the things that seem weird or new in Rust already exist in functional languages.
- wwright 6y agoI heavily disagree, as someone who uses C++ as my primary language at my job for the last three years, and who has a lot of experience in many other languages. It has developed a lot of idiosyncrasies that range from "confusing unique syntax" to "using these two features together will blow your app up with no warning from the compiler".
- tene 6y agoI'm very confused by this claim. Rust's borrow checker is new, but everything else in the language is extremely familiar and recognizable to me from other languages I've worked with. Structs and enums are all over the place Free function definitions, and methods defined on a data type, are extremely common Rust Traits are ways of naming groups of operations to be associated with different types, and share a lot of similarity with Type classes, roles, interfaces, mixins, etc. present in many common languages async/await is similarly present in many common languages Generics / Parametric Polymorphism, extremely familiar from C++, Java, C#, etc. It's almost all modern takes on normal common PL things that have been in many languages for decades So by my perspective, I see a very normal imperative language, with its own take and small quirks on very familiar features, and the only feature I've been able to come up with that's "completely unlike every other language people have been using for decades" is the borrow checker. One new unique feature seems well within the weirdness budget of a new language. Could you expand a bit more on what it looks like from your perspective? What other features or properties of the language seem strange, alien, foreign, or otherwise completely unfamiliar to you?
- sanderjd 6y agoIt totally is unlike every other language... I can't think of any other language that has rvalue references or move semantics or template metaprogramming or all sorts of other stuff that C++ has in order to pull off its zero-cost abstractions. For other things, like RAII and desctructors, the only language I know that has the same concepts is Rust. I agree that Rust has some things (maybe just one thing: the ownership + borrow checking system) that are "completely unlike every other language people have been using for decades", but so does C++.