Open
Description
Listing some ideas for improvements to coercion/subtyping.
- A variant can be coerced to a polyvariant if the polyvariant is closed and the runtime representation matches
- Investigate dicts - what can be coerced?
- Handle more coercion + unboxed variants. For example.
"hello" :> JSON.t
and1. :> JSON.t
works, but not1 :> JSON.t
,true :> JSON.t
ordict{"test": "hello"} :> JSON.t
Metadata
Metadata
Assignees
Labels
No labels