3 ms·
Other than the `|var|` syntax in closures, I can't think of a single way Rust looks like Ruby. I mean that seriously, there is almost no other similarities.
by ninkendo 11mo ago
Other than the `|var|` syntax in closures, I can't think of a single way Rust looks like Ruby. I mean that seriously, there is almost no other similarities.
- jjtheblunt 11mo agoi suspect the example was syntax like a.b().c().d(10)
- echelon 11mo agoDon't forget expressions and block expressions, and all of the Ruby-esque syntax sugar around them. How expressions work with functional methods. I write a lot of chains with block expressions that almost look 1:1 with Ruby.
- nicoburns 11mo agoThere's definitely some Ruby influence (closures syntax in particulary), but I think I'd argue that Rust syntax is closer to JavaScript/TypeScript than anything else.
- deleted 11mo ago[deleted]