Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • support case-insensitive switch: another commented commenter pointed out this is would require Locale-specific matching, which would complicate the proposal and implementation
  • null handling: several commenters requested that a special "case null" be supported. In the current proposal, switching on a null value will cause a NullPointerException to be thrown.