What problem does this solve or, what need does it fill?
Handle currently requires Default to be implemented, which reduces type safety because for many Assets no default makes sense. Removing this requirement would also partially solve #1201, because when creating Text and filling out the values with ..Default::default() style.font will be set to an invalid font Handle and fail to render.
What solution would you like?
The removal of the requirement that all Handles have to implement Default. The reason this requirement exists is because Handle derives Reflect.
What alternative(s) have you considered?
Runtime errors for default handle values where Default is invalid, but this delays the problem feedback and increases iteration time compared to getting the error at compile time.
What problem does this solve or, what need does it fill?
Handle currently requires
Defaultto be implemented, which reduces type safety because for manyAssetsno default makes sense. Removing this requirement would also partially solve #1201, because when creatingTextand filling out the values with..Default::default()style.fontwill be set to an invalid font Handle and fail to render.What solution would you like?
The removal of the requirement that all
Handleshave to implementDefault. The reason this requirement exists is becauseHandlederivesReflect.What alternative(s) have you considered?
Runtime errors for default handle values where
Defaultis invalid, but this delays the problem feedback and increases iteration time compared to getting the error at compile time.