zlacker

[return to "A Look at Rust from 2012"]
1. assbut+OOl[view] [source] 2025-12-03 14:17:11
>>todsac+(OP)
Very interesting to see the ML influences like ~ for unary minus, unscoped enums, mut on specific struct fields...

It seems like over time, a lot of that was replaced with C++-style syntax and semantics. Presumably to make the language appeal more to C++ devs

◧◩
2. echelo+IVl[view] [source] 2025-12-03 14:53:00
>>assbut+OOl
Rust looks nothing like C++.

It looks like Ruby.

The generics look like Java.

◧◩◪
3. ninken+ehm[view] [source] 2025-12-03 16:32:14
>>echelo+IVl
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.
◧◩◪◨
4. echelo+7ym[view] [source] 2025-12-03 17:46:26
>>ninken+ehm
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.

[go to top]