this post was submitted on 08 Jan 2025
25 points (96.3% liked)
Rust
6187 readers
87 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
it might be just me, but, from the code snippet, it feels a lot like ruby
As someone who doesn't know scripting languages well, what does make the snippet you posted particularly Ruby-ish?
Reading the guide, it felt like a relatively small consistent scripting language, with some Rustic touches. But I probably missed the touches from other languages I don't know.
But then, Rust itself took inspiration from many other languages, including Ruby itself. So, maybe everyone is taking from (or mimicking if you will) everyone.
BTW, that last part can be written as*:
which maybe mimics some other functional or functional-influenced language(s).
* may require 0.15.1