Hacker News new | ask | show | jobs
by StreamBright 1888 days ago
> To me, Rust introduced a number of new concepts, like match for control flow, enums as algebraic types,

He must be joking.

5 comments

The author specifically and explicitly pointed out 3 times in 2 paragraph that these were new to them, not to the world at large. In fact, they spelled this out very explicitely in the paragraph following the one you selectively quoted:

> Many of the new concepts weren't novel to Rust. But considering I've had exposure to many popular programming languages, the fact many were new to me means these aren't common features in mainstream languages.

And… they're right. Other languages cropped up with overlap around the same time (mostly Swift), but sum types, pattern matching, option types, … were not common features, and borrow checking remains rather unique.

He also claimed that he programmed in Erlang. How can you program in Erlang without pattern matching?
I think you might be misinterpreting that as "Rust introduced these things" rather than "I learned about these things from Rust".
Also, Rust introduced the idea of these things in a systems language.
Popularized. Many others did it first. ATS comes to mind.
See above.
The author does mention a Haskell/Scala like language missing from their list of languages they have written, but then they do include Erlang which I believe has pattern matching as a fairly core construct? This does lead me to doubt how much Erlang they've written, and in turn how much they've written across all of the languages mentioned.
Exactly. How can somebody claim to program in Erlang and also claim that Rust introduced pattern matching to them?

Erlang has the best pattern matching abilities and it is all around in every single Erlang code I have ever seen.

He means Rust introduced these concepts to him, not in general.
When rephrased as "Rust introduced to me a number of new concepts, like match for control flow, enums as algebraic types," it's much more clear what he means. We all learn somehow.