Strings in switch (original) (raw)
Ulf Zibis Ulf.Zibis at gmx.de
Mon Mar 30 11:52:49 PDT 2009
- Previous message: PROPOSAL: checked exception handling enhancement
- Next message: Strings in switch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Joe,
I refer to your proposal: http://mail.openjdk.java.net/pipermail/coin-dev/2009-February/000001.html
If your proposal would unchanged be taken into JDK 7, there won't be any compatible way to implement my more general proposal "Extend switch .. case statement for Object types and simple expressions" in future version of JDK !!! --> So switch .. case statement should compare for IDENTITY if not syntactically determined otherwise. --> compare for EQUALITY would also break semantic of existing switch .. case statement.
-Ulf
- Previous message: PROPOSAL: checked exception handling enhancement
- Next message: Strings in switch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]