• 0 Posts
  • 106 Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2023

help-circle
  • I like the description by a Finn who said: Rust is like a car with automatic, while in C (or Zig) you need to change the gears.

    I don’t think this metaphor is correct. The automatic gear’s analogy would be the Garbage Collector, which almost every mainstream language has. Rust’s memory management, in comparison, is still manual. Maybe not as manual as C or Zig - but I’d say about as manual as C++. The difference is not that it has some weird gear-changing (memory cleanup) scheme that does not require human intervention - it’s that it yells at you when you don’t do the regular gear changing (memory management) properly.