How about @?Int
?
ex = :(
macro _(ex)
if $(rand() > 0.5)
:(Union{$ex, Nothing})
else
:(Union{$ex, Missing})
end
end
)
ex.args[1].args[1] = :?
eval(ex)
@?Int
How about @?Int
?
ex = :(
macro _(ex)
if $(rand() > 0.5)
:(Union{$ex, Nothing})
else
:(Union{$ex, Missing})
end
end
)
ex.args[1].args[1] = :?
eval(ex)
@?Int