3 ms·
> inner: Arc<RwLock<PersonInner>>, overuse of generics is a clear sign of buggy code anyway. Also the bad naming "inner". I would not like to maintain this per
by 1oooqooq 3y ago
> inner: Arc<RwLock<PersonInner>>,
overuse of generics is a clear sign of buggy code anyway. Also the bad naming "inner". I would not like to maintain this person code.
just add a `lock` to your struct and be sure to use it when touching the other properties. No way to shoot yourself in the foot other than not checking the lock, which have much lower consequences than deadlocks.
- 1oooqooq 3y agoBut this article highlights how rust is the new java. As in language were crappy developers can implement overly complex architectures for job safety and architect one-upping.