BitIntegers.jl
BitIntegers.jl copied to clipboard
`requires exactly 1 or 3 arguments, got 2`
Sometimes the type is only interpreted as sign or not signed, in that case I try to use something like
@define_integers 32 _ Index32
but then it errors because _ = is illegal
all-underscore identifier used as rvalue around /home/akako/.julia/packages/BitIntegers/6M5fx/src/BitIntegers.jl:60
I think we can maybe add a special case for _ to ignore it
Sounds like a goode idea.
I will make a PR
I would prefer having @define_signed_integer and @define_unsigned_integer in addition to @define_integers. Internally they could share most of the code.