tiancaiamao / cora

Genius programmer should write his own lisp!
50 stars 7 forks source link
cora lambda lisp programming-language

The cora programming language

Inspired by scheme, shen, femtolisp and many more...

kernel lambda

Minimal special forms:

set can be a function rather than special form.

let is a macro.

(let a 3 b 5 ...)

proper tail call

proper tail call, as scheme does.

partial apply

((+ 3) 4)

pattern match

(match (cons 1 2)
    (cons a b) a)

The func macro

(func map
  f [] => []
  f [x . y] => [(f x) . (map f y)])

Nowadays any cats and dogs write their own programming languages, mostly sucks. Many of them are too small to be even a finished toy, many lack features, worsely, many choose the wrong features.

However, it's still an important practice for a true lisp hacker to keep inventing his own one, adapting the language to his own taste.

Among the most important features, lisp1, of course. Then comes proper tail call and partial apply, for functional programming goodness. Keep the kernel language miminal is also important, I think.