1

New candidate JEP: 433: Pattern Matching for switch (Fourth Preview)

 1 year ago
source link: https://mail.openjdk.org/pipermail/amber-dev/2022-October/007536.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Pattern Matching for switch (Fourth Preview)

New candidate JEP: 433: Pattern Matching for switch (Fourth Preview)

Mark Reinhold mark.reinhold at oracle.com
Tue Oct 18 17:04:10 UTC 2022

// Corrected

https://openjdk.org/jeps/433

  Summary: Enhance the Java programming language with pattern matching
  for switch expressions and statements. Extending pattern matching to
  switch allows an expression to be tested against a number of patterns,
  each with a specific action, so that complex data-oriented queries can
  be expressed concisely and safely. This is a preview language feature.

- Mark



More information about the amber-dev mailing list


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK