Throwing exceptions from records
Kasper Nielsen
kasperni at gmail.com
Sun Mar 8 09:10:15 UTC 2020
>
> Right, because any and all meaningful logic is just thrown in other
> places making them more complicated.
>
I took a look at one of the classes you are trying to convert to a record [1].
And it really looks like a really poor fit for record conversion. What exactly
are you trying to accomplish? Avoid writing a single getter? Because something
like equals() and toString() doesn't really make sense. Also, by converting to
records you would end up exposing the VarHandle which I assume is something
you would actually want to encapsulate? On top of that, you have a set method,
which I find really weird given that records signal pure data carriers.
And maybe go a bit easy on the confrontational tone in your emails. It won't get
you any further on amber-dev then it did on panama-dev.
/Kasper
More information about the amber-dev
mailing list