We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bdbefb commit 0c8c6f0Copy full SHA for 0c8c6f0
lib/elixir/lib/kernel/special_forms.ex
@@ -1064,9 +1064,9 @@ defmodule Kernel.SpecialForms do
1064
we are passing the representation of the variable `kv`, our
1065
code fails.
1066
1067
- This is actually a common pitfall when developing macros. In
1068
- practice, we want to avoid doing work at compilation time as
1069
- much as possible. That said, let's attempt to improve our macro:
+ This is actually a common pitfall when developing macros. We are
+ assuming a particular shape in the macro. We can work around it
+ by unquoting the variable inside the quoted expression:
1070
1071
defmacro defkv(kv) do
1072
quote do
0 commit comments