rust-unofficial/patterns

Add double panic mentioning for RAII guards

開放

#327 建立於 2022年11月27日

 (1 則留言) (0 個反應) (0 位負責人)Shell (292 個分叉)batch import
A-patternC-amendmentgood first issue

倉庫指標

星標
 (6,622 顆星)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南