Replies: 1 comment
-
|
One problem with this idea is that Java 17 doesn't have type patterns in switch statements yet, which makes record destructuring cumbersome. I suppose we have a few options:
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Rather than five separate
submitXxxmethods for five different kinds of updates, what if we had a singlesubmitUpdatemethod that accepted an object describing the update? The records would look a bit like the ones here used byReportingDriver.This would be an even greater simplification than the one we envisaged in #42.
Beta Was this translation helpful? Give feedback.
All reactions