3 ms·
If Java had anonymous (structural) records, then named arguments could just be a function with a parameter that has a record structural type. It could even be g
by grumpyprole 5y ago
If Java had anonymous (structural) records, then named arguments could just be a function with a parameter that has a record structural type.
It could even be given syntactic sugar, something like:
foo{ bar=true, baz=true }