Re:Pattern Matching Custom Data Types in TypeScript
by maxxxxx on Saturday February 02, 2019 @04:21PM
(#19065784)
I think the code is way too verbose. One supposed advantage of FP languages is that they are more concise. If I have to build a ton of boilerplate I might just as well go to some OOP pattern with interfaces and so on.
[ Parent
| on HN ]
Re:Pattern Matching Custom Data Types in TypeScript
by alexsasharegan on Saturday February 02, 2019 @04:28PM
(#19065835)
Remember that the point of the article is not what language does it best, but rather how to use typescript to add patterns from other languages.