|
|
|
|
|
by tgv
1220 days ago
|
|
IMO, that's too superficial to compare them. So what if both have a bunch of similar looking constructs? Rust is imperative, and sequential, and nearly everything is mutable, hence the borrow checker. That makes programming in Rust rather different. |
|
Rust controls mutable data by the borrow checker system: allow sharing OR mutation but not both at the same time.