rust-unofficial/patterns

Add double panic mentioning for RAII guards

Aperta

#327 aperta il 27 nov 2022

 (1 commento) (0 reazioni) (0 assegnatari)Shell (292 fork)batch import
A-patternC-amendmentgood first issue

Metriche repository

Star
 (6622 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor