tiancaiamao / shen-go

A Go implementation of the Shen programming language
Other
55 stars 4 forks source link

src: add a let-loop macro #20

Closed tiancaiamao closed 3 years ago

tiancaiamao commented 3 years ago

The let loop macro works just like the scheme language:

(let-loop recur (i 0 y 1)
          (if (= i 100)
              42
            (recur (+ i 1) y)))

And I have written a blog for it (in CN)