logoalt Hacker News

zozbot234last Monday at 8:40 AM1 replyview on HN

Didn't PASCAL have variant record types with a kind of primitive pattern matching already?


Replies

skepti3last Monday at 11:41 AM

Possibly, I am not sure, though Delphi, a successor language, doesn't seem to advertise itself as having pattern matching.

Maybe it is too primitive to be considered proper pattern matching, as pattern matching is known these days. Pattern matching has actually evolved quite a bit over the decades.