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.

贡献者指南