>- 运算符在 RxSwift 中是什么意思,它在哪里记录?
What does the >- operator mean in RxSwift and where is it documented?
我在涉及 RxSwift 的各种代码片段中看到了 >-
运算符(例如 https://github.com/ReactiveX/RxSwift/issues/35),但找不到关于它的任何文档。这是什么意思?
这是一个例子:
combineLatest(emailIsValid, passwordIsValid)
>- and
>- signupButton.rx_subscribeEnabledTo
>- disposeBag.addDisposable
>-
运算符称为 "pipe-forward operator",它在 this commit 中被删除以支持协议扩展,一旦它们在 Swift 中成为可能。
考虑到 Swift 的能力,这是当时最好的方法。
我在涉及 RxSwift 的各种代码片段中看到了 >-
运算符(例如 https://github.com/ReactiveX/RxSwift/issues/35),但找不到关于它的任何文档。这是什么意思?
这是一个例子:
combineLatest(emailIsValid, passwordIsValid)
>- and
>- signupButton.rx_subscribeEnabledTo
>- disposeBag.addDisposable
>-
运算符称为 "pipe-forward operator",它在 this commit 中被删除以支持协议扩展,一旦它们在 Swift 中成为可能。
考虑到 Swift 的能力,这是当时最好的方法。