Re:Intro To Pattern Matching – Covers C# 9
by Floegipoky on Wednesday February 19, 2020 @01:59PM
(#22368794)
I have far fewer problems with the Car than I do with the rest of the example.
> The problem comes when you want to add continually new methods all the time
This is not a real problem! Violating encapsulation to avoid dealing with the occasional merge conflict is probably the worst use of pattern matching I've ever seen. The tug-of-war between OO and FP is greatly exaggerated.
> The problem comes when you want to add continually new methods all the time
This is not a real problem! Violating encapsulation to avoid dealing with the occasional merge conflict is probably the worst use of pattern matching I've ever seen. The tug-of-war between OO and FP is greatly exaggerated.