Closed philippjfr closed 6 months ago
Thanks. Not sure how we missed some of those earlier. The doc page also needs updating.
Thanks. Not sure how we missed some of those earlier. The doc page also needs updating.
I did not fully appreciate that and
, or
and not
cannot be overloaded in Python, only the equivalent boolean operators &
, |
and ~
can.
Why are the underscores needed?
As we have started building applications with
rx
a few gaps have become clear, specifically the following functionality is currently missing:rx()
which initializes with a None valuenot
keyword, therefore we introduce.rx.not_
.rx.map
and
keyword, therefore we introduce.rx.and_
or
keyword, therefore we introduce.rx.or_
initial
value on.param.when
so that the expression isn't evaluated until the first event is triggered.rx.watch()
without args to make expression evaluate eagerly