rust-unofficial/patterns

Add double panic mentioning for RAII guards

オープン

#327 opened on 2022/11/27

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Shell (292 件のフォーク)batch import
A-patternC-amendmentgood first issue

Repository metrics

Stars
 (6,622 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド