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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of term

term

Photo of Lisp

Lisp

Photo of pattern matching

pattern matching

Related news:

News photo

Project Helping Hands helps the long-term unemployed in games

News photo

Gamedev in Lisp. Part 2: Dungeons and Interfaces

News photo

Hofstadter on Lisp (1983)