Pattern matching
Meaning in software engineering, with examples
In software engineering, pattern matching means: Choosing a code branch by checking a value's structure or contents, often also giving names to its parts.
In Turkish: örüntü eşleme
How it is used
Used with structured values and alternatives in language guides. It is broader than searching text with a regular expression.
Example sentences
The handler uses pattern matching to separate successful results from errors.
Each result shape selects a branch and can expose the value carried inside it.
With pattern matching, the parser extracts both coordinates from a point value.
The match both checks the structure and binds its components for later use.
Common collocations
- structural pattern matching
- pattern matching expression
Related terms
More terms: Programming Concepts
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
