switch for Object

a d cld71 at hotmail.com
Sun May 29 01:41:29 PDT 2011


Dear Coin-Developers,

  Recently I have been looking at proposed Java language changes in Java 7.0.
One of the areas that is being changed that I can't stop thinking about is the switch for String, and was wondering why just for String?
Why not add a switch for all Objects that implement java.lang.Comparable<T> or java.util.Comparator<T> to make easier to use the switch operator?

Thanks...
 		 	   		  


More information about the coin-dev mailing list