消息传递选择:返回值 or 抛出异常

1、返回值 bool 不应该用来表示函数是否调用成功,而应该返回业务值,例如 IsExist,HasNext

原文地址:https://www.cnblogs.com/xm_cpppp/p/3607547.html