简体   繁体   中英

RxSwift 4/RxCocoa 4 Deprecating Variable - pros and cons

In the future, Variable will be deprecated in RxSwift 4. Instead, Relay classes were first implemented in RxCocoa 4, and an alternate proposed to Variable is BehaviorRelay.

Assigning the value of a Variable is an imperative programming-style command. Its convenient but not belongs in Reactive's declarative programming environment.

What are their pros and cons?

我建议您阅读这篇文章 (或者可能是所有主题),以找到有关VariableDriver一些用户友好解释。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM