> I want an object field to be able to handle two differents types with a clean 
> syntax on the user side

Take a look at [Object 
variants](https://nim-lang.org/docs/manual.html#types-object-variants) section 
in the manual, maybe that is something you can use in your case.

Reply via email to