tuturto / apocrita

A very simple lisp, implemented in hy
MIT License
4 stars 0 forks source link

multibody function #11

Closed tuturto closed 8 years ago

tuturto commented 8 years ago

Functions can currently have only a single expression inside of them. This makes it impossible to define local symbols and functions.

=> (define value 1)
1

=> (define example
...  (lambda ()
...    (define value 10)
...    (+ value value)))
<closure>

=> (example)
20
tuturto commented 8 years ago

use do form for this