3 ms·
> To me, Rust introduced a number of new concepts, like match for control flow, enums as algebraic types, He must be joking.
by StreamBright 6y ago
> To me, Rust introduced a number of new concepts, like match for control flow, enums as algebraic types,
He must be joking.
- TheAdamAndChe 6y agoWhen 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.
- oytis 6y agoHe means Rust introduced these concepts to him, not in general.
- danpalmer 6y agoThe 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.
- StreamBright 6y agoExactly. 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.
- deleted 6y ago[deleted]
- VBprogrammer 6y agoI think you might be misinterpreting that as "Rust introduced these things" rather than "I learned about these things from Rust".
- ocschwar 6y agoAlso, Rust introduced the idea of these things in a systems language.
- EE84M3i 6y agoPopularized. Many others did it first. ATS comes to mind.
- StreamBright 6y agoSee above.
- masklinn 6y agoThe 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.
- StreamBright 6y agoHe also claimed that he programmed in Erlang. How can you program in Erlang without pattern matching?