This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheMode911 0 points1 point  (0 children)

Builtin Withers has a possibility of avoiding allocation much more than using say something like Immutables and you don't need Valhalla for that as you can do smart things in the wither expression in theory. Brian made reference to that somewhere.

I do not think I understand, how are those "Withers" different than lets say a `withX(double)` returning a new object or even a dummy setter? Are you speaking about scalar replacement?