Xiu-zhe (Roger) Luo
Xiu-zhe (Roger) Luo
I think this field should always be available if you construct using `from_toml` etc
ah, you need to overload your custom `from_dict`, it will not appear in your custom type by default, it's a meta info only used by the parsers
The problem is actually because Comonicon doesn't support windows since I don't know how to configure terminals on windows
yes, that's something I want to have actually, but haven't spent much time thinking about it, it's basically `AutoHashEqual` package but for ADTs. We should be able to just overload...
```julia @adt MyADT begin @hash_equal struct CanBeHashed a::Int b::Int end struct NotDirectHashable h::Ref{Int} end end ``` for all hashable ```julia @hash_equal MyADT ```
```julia @hash_equal First @hash_equal Second hash_equal_trait(::Type{T}) where {T} = applicable(hash, T) && applicable(==, T) hash_equal_trait(::Type{First}) = true hash_equal_trait(::Type{Second}) = true ```
this is now supported in Moshi as the `@derive` macro
this should be possible by just walking through the definitions via reflections (the `variant_xxx` functions), the question is it does not fully compatible with BNF - ADTs do not have...
now we basically support this, a few things left to do: 1. make `print_expr` parsable (it seems to work, but need more test on this) 2. replace the default Julia...
not sure what kind of example you mean here? there are almost one example for each exported function and type already written in the doc. I'm not sure what example...