rust-unofficial/patterns

Add double panic mentioning for RAII guards

Offen

#327 geöffnet am 27.11.2022

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Shell (292 Forks)batch import
A-patternC-amendmentgood first issue

Repository-Metriken

Stars
 (6.622 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide