Sometimes, I would like to work with typed structures that would still allow custom fields.
There may be a set of fields that are always the same (and can be typed with a typedef etc...), but I still want to allow to add custom fields to the same object, like you would do on a Dynamic object.
Unfortunately, I didn't find any way to do this. I either have a strictly typed object that doesn't allow any additional fields, or I can just use Dynamic, but then I lose all typing information, code completion on the expected "default" fields.
I'm interested to know if anybody got similar problems and how they solve it in Haxe (without the use of plain Dynamic objects and Reflect.field/setField)
Thanks!