should the Observer Pattern include some infinite loop detection?

后端 未结 6 1973
我在风中等你
我在风中等你 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:49

    Infinite loop handling could be part of the actual implementation of the pattern, but the description of the pattern itself should be general and not be concerned with these details.

提交回复
热议问题