Skip to content

Commit

Permalink
simplify reader macro
Browse files Browse the repository at this point in the history
  • Loading branch information
markomanninen committed Apr 16, 2017
1 parent b31d386 commit ffd0716
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions hyml/minimal.hy
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,3 @@
`(quote ~~@body))
; return None to prevent printing created anonymous macro/function
None))

; bhybel macro shortcut for babel/gettext localization and internalization
(eval-and-compile
(defreader i [args] `(_ ~@args)))
3 changes: 1 addition & 2 deletions hyml/template.hy
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@
(parse-mnml (eval (quote ~args) ~variables) ~variables))))

; bhybel macro shortcut for babel/gettext localization and internalization
(eval-and-compile
(defreader i [args] `(_ ~@args)))
(defreader i [args] `(_ ~args))

0 comments on commit ffd0716

Please sign in to comment.