tomlz
tomlz copied to clipboard
question about decoding a string map to typed value
Thanks for the great library. I have a use case where I'd like to decode names with arb names but whose values have a known types. In zig I'd normally use a std.StringHashMap(T)
for that but that doesn't work with decode. One way to work around that would be to add first class support for StringHashMap
another way would be to allow Table the Value type to have some sort of conversion method. decodeValue
looks to be that methods but its not public. I'm curious what your thoughts are on exposing that.