3 ms·
I think what you might be missing is that, in (safe + idiomatic) Rust, we actually can't have references between things (unless we want to make our entire GUI i
by verdagon 5y ago
I think what you might be missing is that, in (safe + idiomatic) Rust, we actually can't have references between things (unless we want to make our entire GUI immutable, which would be a tad silly).
Since we can't use references, we need to "refer" to other objects via IDs.
- b3morales 5y agoThanks, I'll have to look into how GUIs in Rust work then; that sounds utterly bizarre to me :) I thought you could take references to things in Rust. Also, in particular, I don't understand why you'd want to use closures -- inherently reference-y -- when everything else is (I guess?) a non-reference plain value.