3 ms·
> For anyone scared of Rust or the borrow checker: due to the nature of HTTP services and request flow logic, you almost never bump into it when writing backend
by dlisboa 2y ago
> For anyone scared of Rust or the borrow checker: due to the nature of HTTP services and request flow logic, you almost never bump into it when writing backend Rust.
I’d say for anyone worrying about it just use ‘clone()’ everywhere you can. If you’re coming from any interpreted language the performance and efficiency will just be so much better that it doesn’t matter.
- echelon 2y agoThat's an excellent way to get your footing. And you can come back in a month and fix it all easily.
- johnisgood 2y agoclone(); )?; all that stuff is just meh.
- johnisgood 2y agoI mean, who thinks using .clone() everywhere is such a good idea?
- echelon 2y agoIt's a suggestion for beginners writing their first Rust program. You wouldn't do this once you feel comfortable with the language.
- johnisgood 2y agoThey might end up with a bad habit, however.