Comment

Comment by ReleaseCandidat

> I think that depends on what you meany by "pattern matching"

Oh, yes, that's true. "Pattern matching" as that what normally is used in "functional programming languages". This kind of pattern matching does not need unification. The IMHO best (correct, but understandable and with all needed definitions) explanation of it is in chapters 4 "STRUCTURED TYPES AND THE SEMANTICS OF PATTERN-MATCHING" and 5 "EFFICIENT COMPILATION OF PATTERN-MATCHING" of Peyton Jones et al., "The implementation of functional programming languages".

https://simon.peytonjones.org/slpj-book-1987/

> In programming cirlces "pattern matching" usually means matching strings.

Depends on the "circle" ;) https://en.wikipedia.org/wiki/Pattern_matching

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton