Created
January 18, 2011 21:57
-
-
Save evanrmurphy/785243 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
# Trying to write a simplified let macro to learn PicoLisp | |
# In arc this could be expressed as: | |
# | |
# (mac mylet (var val . body) | |
# `((fn (,var) ,@body) ,val)) | |
# | |
# I've tried to translate this into PicoLisp below, but it is | |
# not working. | |
(de mylet (@var @val . @body) | |
(macro '(((@var) ~@body) @val))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment