Open
Description
What problem does this solve or what need does it fill?
When using one of the Dynamic*
types, it is very difficult to clear a field that's already been set or to explicitly not provide a value.
What solution would you like?
I would like to see a Null
type (bikeshed exact name for it later). The FromReflect
derive macro should be updated to treat instances of this type as if the field wasn't set.
What alternative(s) have you considered?
I haven't really been able to come up with another way to handle it.
Additional context
I've been playing around with setting up some kind of interop between bevy_reflect
and python types using the pyo3
crate and I've been struggling to deal with None
values from python.