Because a QuoteNode is not the same thing as a symbol: julia> :x == :(:x) false julia> dump(:(:x)) QuoteNode value: Symbol x
(please read the metaprogramming documentation to see what tools are available to help with macro development...) On Wed, May 25, 2016 at 10:10 AM, Ford Ox <[email protected]> wrote: > Could somebody smarter than me tell me why this return *false*: > > macro symbolequal(symbol) > mysymbol = :(:x) > :($(symbol==mysymbol)) > end > > @show @symbolequal :x > >
