rust-unofficial/patterns
Add double panic mentioning for RAII guards
Aberta
#327 aberto em 27 de nov. de 2022
A-patternC-amendmentgood first issue
Métricas do repositório
- Stars
- (6.622 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
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.