On Thu, 1 Sep 2022 12:35:21 GMT, John Hendrikx <jhendr...@openjdk.org> wrote:

>> `when` sounds fine, but we need to be careful about its relation to the 
>> `When` class.
>> 
>> This reminds me also that some of the new functionality in `ObservableValue` 
>> can be used as a replacement for `When`, maybe we should note that like we 
>> did with `Bindings.select`.
>
> Do you want me to make this part of the PR? Basically, `Bindings.when` with 
> `map` or `flatMap` depending on whether or not you refer to a value or 
> another property in `then` or `otherwise`.

Changing the documentation for `When` should not be part of this PR I think. 
What we should do maybe is add a note that this method should not be confused 
with `Bindings.when`. I'll let others weigh in.

-------------

PR: https://git.openjdk.org/jfx/pull/830

Reply via email to