是“信号和时隙”吗?反应式编程的概念?
正如标题中所写 - “信号和槽”是一种简单的反应式编程方法吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
正如标题中所写 - “信号和槽”是一种简单的反应式编程方法吗?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
Signals/Slots 是 观察者模式 。
来自 响应式编程 上的 wiki:
他们使用了响应式编程维基中的 Excel 单元格/公式的示例,这无疑是使用 Excel 源代码中的观察者模式来实现的,以使其真正实现。然而,对于“excel 程序员”来说,它是响应式编程,因为他们不必自己实现观察者模式……所以在这个层面上它是有意义的。 C++/C#/C/etc 没有内置此功能。
Signals/Slots is an implementation of the Observer Pattern .
From the wiki on Reactive Programming:
They use the example of
Excel
cells / formulas in the Reactive Programming wiki, which is undoubtedly implemented using the observer pattern under the covers in the excel source code to make it actually happen. However, to the "excel programmer", it's Reactive Programming as they aren't having to implement the Observer Pattern themselves ... so it makes sense on that level. C++/C#/C/etc do not have this ability built in.