paulk-asert commented on a change in pull request #1660:
URL: https://github.com/apache/groovy/pull/1660#discussion_r762921693



##########
File path: src/main/java/groovy/lang/NamedValue.java
##########
@@ -0,0 +1,24 @@
+package groovy.lang;
+
+public class NamedValue<T> {

Review comment:
       `Map.Entry<String,Object>` is not quite the right abstraction being 
mutable. It isn't really `Tuple2` either. It is more like a _named_ `Tuple1` 
much like we have the `ginq` specific `NamedTuple`. Adding a more general 
version of the `ginq` class to core or `Named` variants of our Tuple0..Tuple16 
classes seemed like bigger changes to me. `NamedValue` seems like an 
abstraction that could pull its weight in numerous other situations.




-- 
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]


Reply via email to