Post #2896111
2026-05-19 15:40 UTC
#rustlang
rust could get away with global mutables, no? functions would capture globals and prevent other functions from implicitly mutating them. if the top-level allowed function calls and mutation, then globals would be explicitly mutated by passing them in as params to globals. basically, the problems with mutable globals disappear with rust's design.
Replies (0)
No replies.