Get the latest tech news
Show HN: Term-Lisp – A Lisp, based on pattern matching and term rewriting
A lisp dialect based on pattern matching and term rewriting - abuseofnotation/termlisp
term-lisp is a language for termlis t p rocessing with first-class pattern matching, inspired by Pie, Haskel, Agda et al. In most languages, this would result in error, but in term-lisp we will create a new datatype/constructor, e.g. the expression Pair foo bar would evaluate to... accepts one argument which has to be a Pair datatype and destructures it to its two elements (which can be referred to by the names a and b in the resulting expression.
Or read this on Hacker News