2 ms·
Expression orientation
by leafario2 6mo ago
Expression orientation
- IshKebab 6mo agoThat's from functional programming.
- saghm 6mo 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 6mo 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 6mo 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).