Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push and "pull" would be more symmetric and intuitive to users. #126

Open
yuehhua opened this issue Mar 11, 2017 · 1 comment
Open

Push and "pull" would be more symmetric and intuitive to users. #126

yuehhua opened this issue Mar 11, 2017 · 1 comment

Comments

@yuehhua
Copy link

yuehhua commented Mar 11, 2017

In documentation,

julia> x = Signal(0)

julia> y = foldp(+, 0, x)

julia> push!(x, 1)

julia> value(y)
1

julia> push!(x, 2)

julia> value(y)
3

It use push! to push a value into the Signal, intuitively, we PULL a value out!
To be symmetric and intuitive, replace value() by pull() would be better.

@shashi
Copy link
Member

shashi commented Apr 9, 2017

We can definitely add pull as alias to value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants