3 ms·
> True, but many languages let you do a lot of useful things while you are still learning, without requiring you to truly understanding what you are doing. Wel
by Ygg2 4y ago
> True, but many languages let you do a lot of useful things while you are still learning, without requiring you to truly understanding what you are doing.
Well same can be done in Rust. Hate the borrow checker? Just Box/RefCell all the things. However learning that habit can be pricey from execution POV, so most Rust books don't teach it.
- staticassertion 4y agoBox/RefCell are gonna be way harder than just ".clone()" or not sharing mutable references all over the place.
- Ygg2 4y agoWell it's the only way to bypass borrow checker as fas as I know. And I assume teaching you a bad habit, then un-teaching it is going to be more expensive than not. I guess another way could be by using Copy-able structs is anohther way.