Giter Site home page Giter Site logo

Comments (2)

dlew avatar dlew commented on June 9, 2024

Would this mean that calling compoundButtonSubject.onNext(true) would cause the compound button to become checked?

If that's the case, then I am getting a nervous feeling about this because it's moving away from a functional approach and instead depends on side effects. With the two separated there is clearly a cause and an effect, with it combined then the effect could be a cause.

from rxbinding.

JakeWharton avatar JakeWharton commented on June 9, 2024

Maybe we'll just do this internally with a dedicated type.

I don't necessarily want a side-effect-having Subject but rather want a single type with which I can both observe values and update values. This is especially desired in situations where I want to have a single type that I can inject to hide the underlying mechanism (views aren't a good example in this case. think: preferences).

I'm envisioning a simple Property<T> extends Observable<T> implements Action1<T> or a Property<T> which is a factory for Observable<T>s and Action1<T>s.

from rxbinding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.