Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Don'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.


There'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.


i suspect the example was syntax like a.b().c().d(10)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: