#Pattern-Matching
2 notas · última:
Design Patterns Are Temporary, Language Features Are Forever
The post argues that visitor starts to make more sense once you know pattern matching, and that newer Java features like sealed types and switch pattern matching can replace some old OO patterns.
Mastering C# Pattern Matching
The post reduces a lock gate example to a C# switch expression with pattern matching. It shows how underscores replace repeated cases and how invalid states still throw exceptions.
