should the Observer Pattern include some infinite loop detection?

后端 未结 6 2002
我在风中等你
我在风中等你 2021-01-03 09:23

Quickly going through the GoF and the Head First Design Patterns book, it seems like there is no mentioning of infinite loop detection and handling for the Observer pattern?

6条回答
  •  灰色年华
    2021-01-03 09:35

    Is in general the infinite loop check equivalent to the Turing's halting problem? If so then could not be possible.

提交回复
热议问题