Exceptions for flow of control

后端 未结 7 536
死守一世寂寞
死守一世寂寞 2021-01-20 14:59

There is an interesting post over here about this, in relation to cross-application flow of control.

Well, recently, I\'ve come across an interesting problem. Gener

7条回答
  •  北海茫月
    2021-01-20 15:28

    It's not a very good idea to throw exceptions as a part of an algorithm, especially in .net. In some languages/platforms, exceptions are pretty efficient when thrown, and they usually are, when an iterable gets exhausted for instance.

提交回复
热议问题