mattbierner / khepri

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

Multiple let bindings vs nested lets semantic differences. #61

Closed mattbierner closed 10 years ago

mattbierner commented 10 years ago

the syntax

let x = 1, y = 3 in x + y;

should be functionally equivalent to

let x = 1 in let y = 3 in x + y;

The case:

let x = 3, x = 1 in x;

is currently invalid because x is bound twice. But

let x = 3 in let x = 1 in x;

is valid.

This is related to #60.

mattbierner commented 10 years ago

related to #62