I'll still take pattern matching over this any day. Easier to read, _and_ I can account for conditions that aren't mutually exclusive. Languages with pattern matching support make it terser, but here's TypeScript w/ ts-pattern.
2 likes 1 replies
?
I'll still take pattern matching over this any day. Easier to read, _and_ I can account for conditions that aren't mutually exclusive. Languages with pattern matching support make it terser, but here's TypeScript w/ ts-pattern.
2 likes 1 replies