Avoid using a core function name as a variable
This commit is contained in:
parent
80bece497a
commit
1f95da2b0b
@ -297,16 +297,12 @@ Return series of accumulated sums (or other binary function results)."
|
|||||||
(defn macroexpand [form]
|
(defn macroexpand [form]
|
||||||
"Return the full macro expansion of `form`."
|
"Return the full macro expansion of `form`."
|
||||||
(import hy.macros)
|
(import hy.macros)
|
||||||
|
(hy.macros.macroexpand form (HyASTCompiler (calling-module-name))))
|
||||||
(setv name (calling-module-name))
|
|
||||||
(hy.macros.macroexpand form (HyASTCompiler name)))
|
|
||||||
|
|
||||||
(defn macroexpand-1 [form]
|
(defn macroexpand-1 [form]
|
||||||
"Return the single step macro expansion of `form`."
|
"Return the single step macro expansion of `form`."
|
||||||
(import hy.macros)
|
(import hy.macros)
|
||||||
|
(hy.macros.macroexpand-1 form (HyASTCompiler (calling-module-name))))
|
||||||
(setv name (calling-module-name))
|
|
||||||
(hy.macros.macroexpand-1 form (HyASTCompiler name)))
|
|
||||||
|
|
||||||
(defn merge-with [f &rest maps]
|
(defn merge-with [f &rest maps]
|
||||||
"Return the map of `maps` joined onto the first via the function `f`.
|
"Return the map of `maps` joined onto the first via the function `f`.
|
||||||
|
Loading…
Reference in New Issue
Block a user