On Friday, 10 May 2024 at 11:05:28 UTC, Dukc wrote:


This also gets inferred as `pure` - meaning that if you use it twice for the same `WeakRef`, the compiler may reuse the result of the first dereference for the second call, without checking whether the referred value has changed!

This would be weak pure since the reference is mutable. This cannot be memoized.

-Steve

Reply via email to