timowest / symbol

typed lisp adventure
17 stars 1 forks source link

Additional support for Extempore style closures #26

Closed timowest closed 11 years ago

timowest commented 11 years ago

Closures in Extempore make the context editable. This could be supported by converting structures similar to the following

(let [a ...
       b ...]
  (fn [] ...))

into

(do 
   (defstruct structX 
     (a typeA) 
     (b typeB)
     (apply (method ...))

   (structX. ...))

Extempore : https://github.com/digego/extempore

timowest commented 11 years ago

Dropping this for now, I will try to implement a subset of deftype declarations instead.