I have a use case in which @enums are awesome, integer identifiers for different variables to give the code more context / meaning.
I noticed that this does not work out of the box:
julia> @enum xxx::Int8 x = 1
julia> x
x::xxx = 1
julia> file["test"] = UInt8(x)
0x01
julia> file["test"] = x
ERROR: MethodError: no method matching hdf5_type_id(::Type{xxx}, ::Val{false})
Converting it to the correct type of course works as expected. I think it should be possible for the code to correctly parse a vector of enums and save it?
Hello!
I have a use case in which @enums are awesome, integer identifiers for different variables to give the code more context / meaning.
I noticed that this does not work out of the box:
Converting it to the correct type of course works as expected. I think it should be possible for the code to correctly parse a vector of enums and save it?
Kind regards