rust-unofficial/patterns
Add double panic mentioning for RAII guards
Ouverte
#327 ouverte le 27 nov. 2022
A-patternC-amendmentgood first issue
Métriques du dépôt
- Stars
- (6 622 étoiles)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
I think it would be nice to mention that one should be careful when writing drop implementations on guards relatively to the double panic possibility when they find out about this pattern for the first time or are unaware of double panicking generally.
It might help someone inexperienced I suppose.