Does ScopeGuard use really lead to better code?

前端 未结 8 1868
-上瘾入骨i
-上瘾入骨i 2020-12-04 15:36

I came across this article written by Andrei Alexandrescu and Petru Marginean many years ago, which presents and discusses a utility class called ScopeGuard for writing exce

8条回答
  •  攒了一身酷
    2020-12-04 16:23

    I haven't used this particular template but I've used something similar before. Yes, it does lead to clearer code when compared to equally robust code implemented in different ways.

提交回复
热议问题