3 ms·
As a long time ruby enjoyer and now also rust enjoyer, the core syntax and systems of rust are very rubyesque in a lot of ways, you can tell that some of the co
by jaggederest 7mo ago
As a long time ruby enjoyer and now also rust enjoyer, the core syntax and systems of rust are very rubyesque in a lot of ways, you can tell that some of the core contributors liked the language.
- nextaccountic 7mo agoyeah ruby API ideas and the _why poignant guide specifically, they were very influential in programming in general. a number of early rust devs came from ruby as well. all original authors of cargo worked on ruby's bundler earlier. etc
- IshKebab 7mo agoReally? What do you think comes from Ruby? Rust mostly seems to be inspired by ML and C++. Actually I just checked the "official" list and they only list the closure syntax which seems pretty minor: https://doc.rust-lang.org/reference/influences.html https://doc.rust-lang.org/reference/influences.html
- leafario2 7mo agoExpression orientation
- IshKebab 7mo agoThat's from functional programming.
- saghm 7mo agoI don't think anyone claimed that Ruby and Rust were the only two languages with those features, just that they're something they both have in common.
- IshKebab 7mo agoThe claim is that Rust took espression-orientation from Ruby. That's unlikely - it is much more inspired by FP languages which are also expression oriented.
- saghm 7mo agoAh, you're right, I definitely misread that the first time. I think the only thing that Rust probably was directly inspired by Ruby on was the syntax for closures (which is not exactly the same, but when the closure uses a block rather than returning an expression directly it's similar, and I vaguely recall seeing something about that being intentional).
- jaggederest 7mo agoIterator style, chaining, traits, blocks all feel very rubyesque, and expression syntax as well, plus the cargo toolchain is very bundler-informed.
- littlestymaar 7mo agoA significant portion of the prominent community members come from Ruby so I guess there must be something …