bobbicodes / bobbi-lisp

Interactive Lisp environment for learning Clojure
https://bobbicodes.github.io/bobbi-lisp/
0 stars 0 forks source link

implement `fn` with destructuring #25

Closed bobbicodes closed 11 months ago

bobbicodes commented 11 months ago

Curiously, this is the first time the core library had to be organized in a manner that defined the functions in a specific order. As in Clojure, we needed a "bootstrap" phase with temporary versions of let and fn without destructuring, and certain functions needed to be modified to use def because we needed to use the destructuring fn inside defn to enable destructuring of function arglists. But it went extremely smoothly and over 140 tests are still passing, same as before.

bobbicodes commented 11 months ago

Fixes #14