How Can I Avoid Using Exceptions for Flow Control?

后端 未结 11 1252
天涯浪人
天涯浪人 2020-12-20 14:51

I have been assigned a project to develop a set of classes that act as an interface to a storage system. A requirement is that the class support a get method with the follo

11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-20 15:25

    The (intended) interface regarding the requirements is seriously broken. You try to do unrelated things within one method. This is the road to software hell.

提交回复
热议问题