The VarHandle API isn't ergonomic like Unsafe; this being for power users is irrelevant to the ergonomics of the API. Instead, it's fairly verbose with setup ceremony. Now, I personally don't mind that too much and more interested in the features it provides but I'm not surprised by David's reaction.

People already provide nicer APIs on top of Unsafe in their own projects, and I suspect this will be even more so with VH.

And that's absolutely fine with us. We wanted to provide a secure, safe, fast substrate that code generators and brave library writers alike will use; if people want to wrap it, we view that as success, not failure.


Reply via email to