Pattern Matching for switch (JEP 427)
GPTKB entity
Statements (49)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:Java_Enhancement_Proposal
|
gptkbp:aims_to |
simplify the syntax of switch statements
the need for explicit casting |
gptkbp:allows |
more concise code
|
gptkbp:enables |
switch expressions to match on types
|
gptkbp:ends_at |
gptkb:2021
|
gptkbp:enhances |
type checking in switch statements
|
gptkbp:features |
gptkb:language
facilitates cleaner code supports better code organization encourages the use of immutability encourages the use of pattern matching in Java enhances the clarity of code logic improves pattern matching capabilities improves the maintainability of code promotes functional programming styles reduces the cognitive load on developers reduces the complexity of switch logic reduces the need for multiple switch cases simplifies the handling of complex data types switch statements to be more flexible |
https://www.w3.org/2000/01/rdf-schema#label |
Pattern Matching for switch (JEP 427)
|
gptkbp:improves |
readability of switch cases
|
gptkbp:introduced |
gptkb:Java_17
|
gptkbp:is_aimed_at |
enhancing developer productivity
|
gptkbp:is_compatible_with |
gptkb:sealed_classes
|
gptkbp:is_designed_to |
reduce boilerplate code
|
gptkbp:is_discussed_in |
Java community process
|
gptkbp:is_expected_to |
improve performance
fewer runtime errors be widely adopted by developers |
gptkbp:is_implemented_in |
gptkb:Java_SE_17
|
gptkbp:is_influenced_by |
functional programming paradigms
|
gptkbp:is_part_of |
gptkb:Project_Loom
Java 18 features Java's evolution towards modern programming practices |
gptkbp:is_related_to |
Pattern Matching for instanceof (JEP 394)
Pattern Matching for records (JEP 420) |
gptkbp:is_supported_by |
gptkb:language
|
gptkbp:origin |
more expressive Java code
|
gptkbp:part_of |
modernize Java syntax
|
gptkbp:proposed_by |
JDK Enhancement-Proposal Team
Pattern matching for switch expressions and statements aims to enhance type safety enhances the expressiveness of Java |
gptkbp:provides |
new syntax for switch statements
|
gptkbp:supports |
instanceof pattern matching
|
gptkbp:bfsParent |
gptkb:JEP_454
|
gptkbp:bfsLayer |
5
|