JEP 354: Switch Expressions (Standard Feature)
GPTKB entity
Statements (59)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:Java_Enhancement_Proposal
|
gptkbp:bfsLayer |
4
|
gptkbp:bfsParent |
gptkb:Java_12
gptkb:Java_SE_11 gptkb:Java_14 gptkb:Java_SE_12 gptkb:Java_SE_14 gptkb:JDK_12 gptkb:JDK_14 gptkb:JDK_15 |
gptkbp:allows |
multiple case labels
|
gptkbp:author |
gptkb:J._B._Rainsberger
|
gptkbp:enables |
expression-based switch cases
|
gptkbp:enhances |
switch statement
|
gptkbp:features |
Java language
enhances type safety allows returning values from switch statements encourages cleaner code practices enhances developer productivity improves maintainability of code improves performance in certain scenarios is discussed in Java forums is included in Java tutorials is part of Java's evolution is part of Java's standard library is referenced in Java books is used in educational resources is widely adopted in modern Java applications reduces the need for break statements simplifies complex switch logic supports pattern matching |
gptkbp:improves |
code readability
traditional switch statements |
gptkbp:introduced |
gptkb:Java_12
|
gptkbp:is_aimed_at |
reducing errors in switch cases
|
gptkbp:is_compatible_with |
existing switch statements
|
gptkbp:is_designed_to |
simplify switch statements
|
gptkbp:is_discussed_in |
gptkb:software_framework
|
gptkbp:is_documented_in |
Open JDK documentation
|
gptkbp:is_implemented_in |
gptkb:language
|
gptkbp:is_influenced_by |
functional programming concepts
|
gptkbp:is_part_of |
gptkb:Java_SE_platform
gptkb:Java_SE_12 Java language enhancements |
gptkbp:is_related_to |
gptkb:JEP_330
gptkb:JEP_361 |
gptkbp:is_supported_by |
Java developers
|
gptkbp:is_used_for |
control flow statements
|
gptkbp:modifications |
affects switch statement behavior
|
gptkbp:origin |
more expressive code
|
gptkbp:proposed_by |
gptkb:Switch_expressions_in_Java
aims to modernize Java |
gptkbp:provides |
enhanced switch syntax
|
gptkbp:provides_access_to |
Java SE 12 release
|
gptkbp:reduces |
boilerplate code
|
gptkbp:release_date |
March 2019
|
gptkbp:resulted_in |
community feedback
|
gptkbp:status |
Standard Feature
|
gptkbp:supports |
yield statement
|