3 ms·
Anyone know of other languages using pattern matching as a foundation? I’ve come across Refal[1], who’s creator Valentin Turchin seems like someone who hasn’t
by runlaszlorun 3y ago
Anyone know of other languages using pattern matching as a foundation?
I’ve come across Refal[1], who’s creator Valentin Turchin seems like someone who hasn’t gotten the recognition he maybe deserves. As an aside, his son Peter Turchin does some interesting work in a different direction that’s def topical these days.
I know SNOBOL gets labeled as one.
Would Prolog count? I haven’t actually written any myself. They def make a strong appearance in Erlang, though it isn’t the first thing that comes to mind if describing. There’s XSLT of course.
Any others?
I think if one were only able to pick one metaphor for a language, I think a strong case could be made for:
pattern => behavior
[1]https://en.wikipedia.org/wiki/Refal https://en.wikipedia.org/wiki/Refal
- c3d 3y agoCheck out Pure. https://agraef.github.io/pure-lang/ https://agraef.github.io/pure-lang/ This was what convinced me to switch to LLVM. I now regret that decision, but at the time, it sounded like a lot of fun.
- runlaszlorun 3y agoThx, I’ll check it out.
- jinwoo68 3y agoProlog is based on "unification" in large part, which can be considered advanced pattern matching.
- shrubble 3y agoAre you using pattern matching in the sense of Standard ML and the ML family of languages?
- runlaszlorun 3y agoProbably but I don’t know any ML… lol. I’ll def check it out though so thx!