Skip to content

Instantly share code, notes, and snippets.

@evanrmurphy
Created January 18, 2011 21:57
Show Gist options
  • Save evanrmurphy/785243 to your computer and use it in GitHub Desktop.
Save evanrmurphy/785243 to your computer and use it in GitHub Desktop.
# 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