mattbierner / khepri

ECMAScript derived programming language
http://khepri-lang.com/
MIT License
67 stars 3 forks source link

Let-rec type bindings #66

Closed mattbierner closed 10 years ago

mattbierner commented 10 years ago

Since regular let was updated to not have bindings see their own binding, let rec style bindings are also needed.

mattbierner commented 10 years ago

Syntax:

let
    fac := \n ->
       ?n
            :n * fac(n -1)
            :1
in fac(10);

Both regular and recursive bindings can be used in the same let expression.