# Help with macro to construct truth tables

**URL:** https://discourse.julialang.org/t/help-with-macro-to-construct-truth-tables/61610
**Category:** General Usage
**Tags:** macros
**Created:** [May 21, 2021, 10:35pm UTC](https://discourse.julialang.org/t/help-with-macro-to-construct-truth-tables/61610 "2021-05-21T22:35:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)
#### Post date: [May 21, 2021, 10:52pm UTC](https://discourse.julialang.org/t/help-with-macro-to-construct-truth-tables/61610/2 "2021-05-21T22:52:45Z")

</div>

Hello @savq and welcome.

You’re much more likely to get help if you show us a minimal working example of the proble, you’re facing. [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)

In this case, if you could make a simple example of the code that produces the problem that we can actually run on our machines, it’s much easier to help.

That said, I think in this case I can guess what the problem is even though the code you posted doesn’t actually have the error. The problem is essentially a difference between this macro:

```julia
julia> macro foo(args...)
           esc(:(($(args...),)))
       end
@foo (macro with 1 method)

```

and this macro:

```julia
julia> macro bar(args...)
           esc(:(($(args...,))))
       end
@bar (macro with 1 method)

```

Here’s the difference:

```julia
julia> x, y = 1, 2
(1, 2)

julia> @foo x y
(1, 2)

julia> @bar x y
(:x, :y)

```

Now, where this mistake may have been made in your code is anyone’s guess.

---

_[View the full topic](https://discourse.julialang.org/t/help-with-macro-to-construct-truth-tables/61610)._
