Since optics has a compiler plugin option, we should look into using assignment altering to allow writing
Person.name = "foo"
inside the copy dsl. A similar thing might also be possible with context parameters.
a
Alejandro Serrano.Mena
11/03/2025, 7:55 AM
to be honest, I don't like the assignment plugin that much...
y
Youssef Shoaib [MOD]
11/03/2025, 11:05 AM
That's very fair. I meant specifically to make our own that would only react to optics types.
At the same time, I think we could pursue a context-based option, but it'd increase our generated declaration count.