Re: JDK-8199560: Dynamic evaluation for binding.When

2018-04-04 Thread Nir Lisker
I don't see any opinions, so should I investigate option 2? - Nir On Thu, Mar 29, 2018 at 4:36 AM, Kevin Rushforth wrote: > Breaking existing apps is the one thing I worried about with the > suggestion of doing it without API changes. So to summarize I think there > are three possiblities: > >

Re: JDK-8199560: Dynamic evaluation for binding.When

2018-03-28 Thread Kevin Rushforth
Breaking existing apps is the one thing I worried about with the suggestion of doing it without API changes. So to summarize I think there are three possiblities: 1. Just make the current API lazy for observables with no resource for the developer. This seems unwise for the reasons you point o

Re: JDK-8199560: Dynamic evaluation for binding.When

2018-03-25 Thread Nir Lisker
Iv'e given the idea of using existing API some thought. When using primitives, the evaluation is always eager. A method that returns a boolean (for example) will always be evaluated before it is passed to When, regardless of the condition value. This precludes the possibility of lazy evaluation in

Re: JDK-8199560: Dynamic evaluation for binding.When

2018-03-16 Thread Kevin Rushforth
Conceptually what you describe sounds like a good approach to explore. Another approach worth exploring is to see whether this can be done without API change, using the existing API. I took a (very quick) look and didn't see anything that would preclude fixing this using the existing API, nor

JDK-8199560: Dynamic evaluation for binding.When

2018-03-13 Thread Nir Lisker
Hello, I've proposed to work on a public API for binding.When that adds capabilities for dynamic evaluation of the 'then' and 'otherwise' arguments. Any comments? https://bugs.openjdk.java.net/browse/JDK-8199560 - Nir