Skip to content

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Sep 29, 2023

Overall this seems much cleaner. Some consequences:

  • We no longer allow setting the value of a non-root node of a reactive expression, i.e. (rx(1) + 1).value = 2 is invalid. This was always what was confusing and made naming this difficult.
  • We now automatically gain support for increment (i.e. .rx.value +=) and other arithmetic/boolean assignment operators

Copy link
Member

@jbednar jbednar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this really streamlines and clarifies usage. Thanks for making it happen!

Copy link
Member

@maximlt maximlt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes that's a great API improvement, thanks @jbednar for making that suggestion, bye bye set_input and resolve!

Co-authored-by: James A. Bednar <jbednar@continuum.io>
@philippjfr philippjfr merged commit f1b5b41 into main Sep 30, 2023
@philippjfr philippjfr deleted the reactive_value_getter_setter branch September 30, 2023 01:00
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

Successfully merging this pull request may close these issues.

3 participants