Replies: 2 comments 1 reply
-
This seems like a lot of work just to write |
Beta Was this translation helpful? Give feedback.
1 reply
-
We can leave it open - maybe others have more ideas |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
As records favor composition, I wanted to discuss with you if an additional interface, for example
public interface Delegates extends With
could be something that would make sence?
Let say we have a record
public record Trade(TradeInfo tradeInfo) implements TradeBuilder.With
where TradeInfo looks like this:
public record TradeInfo(String orderbookId, String tradeId) {}
this delegate interface could look something like this
This would let us specify trade.tradeId instead of trade.tradeInfo.tradeId when we are using the trade record.
What are your thoughts about this delegate interface?
Regards
Dan
Beta Was this translation helpful? Give feedback.
All reactions