logoalt Hacker News

assbuttbuttasstoday at 2:17 PM3 repliesview on HN

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


Replies

nine_ktoday at 3:17 PM

AFAICT the need to resolve unscoped enum values, combined with type inference, is one of the things that makes the Swift compiler so slow.

ahokatoday at 2:21 PM

People wanted a new C++ and they made Rust into it.

echelontoday at 2:53 PM

Rust looks nothing like C++.

It looks like Ruby.

The generics look like Java.

show 3 replies