eric-milles commented on a change in pull request #1660:
URL: https://github.com/apache/groovy/pull/1660#discussion_r762592762
##########
File path: src/main/java/groovy/lang/NamedValue.java
##########
@@ -0,0 +1,24 @@
+package groovy.lang;
+
+public class NamedValue<T> {
Review comment:
Yes, but couldn't the NV whatevers just return `Map.Entry<String,T>` or
`Tuple2<String,T>` that exhibit that behavior? Do we need a new core language
type just for that? If this is specific to NV, why doesn't it go there?
I don't see any of the power you described in the implementation of
`NamedValue`. It doesn't even provide equals, hashCode, comparable, ...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]