Last active
October 1, 2020 15:52
-
-
Save radgeRayden/71e396959a202a8ae418e7ad5199487a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sugar let (bindings body...) | |
let bindings = | |
fold (result = '(embed)) for binding in (bindings as list) | |
sugar-match (binding as list) | |
case (name expr) | |
cons | |
qq [let] [name] = [expr] | |
result | |
default | |
error "invalid let syntax" | |
[do] | |
[('reverse bindings)] | |
unquote-splice body... | |
run-stage; | |
(let | |
((a 2) | |
(b 3) | |
(c (+ a 1))) | |
(print a b c) | |
(+ a b c))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment