Skip to content

Instantly share code, notes, and snippets.

@et4te
Created June 2, 2011 10:39
Show Gist options
  • Save et4te/1004231 to your computer and use it in GitHub Desktop.
Save et4te/1004231 to your computer and use it in GitHub Desktop.
defmacro with-open-file { ?:var ?path is file-path ... } =>
`def ?var = open(?path)
...
close(?var)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment