I am tying to define a type with a macro,
So far I have
deftype(:foo, [:true, :false, :nil])
@type foo :: true | false | nil
and works fine
But what I am trying to do is to simplify the usage and make it more natural to Elxiir syntax.
Is there a way I can call a macro only for the return value of the type without it being evaluated as a type, such as in this hypothetical code:
@type foo :: type_return([:true, :false, :nil])