Side effects are not limited to race conditions. A getter might return
a different value every time, or it might execute code other than
simply returning a value, or a lazy evaluation scheme might cause
other code to be executed. The point is, we don't know that at the
call site, we'd need to inspect what the getter actually does.


On Mon, Dec 4, 2023 at 6:47 PM Andy Goryachev <[email protected]> wrote:
>
> This might be different.
>
>
>
> If we can guarantee that the access to the underlying variable(s) is single 
> threaded - then no.  But we had at least one bug recently in JFXPanel where 
> two threads were involved.  Those cases need to use a very different access 
> pattern(s), depending on the exact circumstances.
>
>
>
> -andy

Reply via email to