Closed Sega-Zero closed 8 years ago
@Sega-Zero Yeah, I'd pull them into an extension. I should probably do that for all the types, as this issue is pretty prevalent due to a number of compiler issues =\
And sure thing, add some about RawRepresentable
!
Done. All additional RawRepresentable
overrides are now in a separate extensions. I also cleaned up an example a little bit, if you don't mind.
In #13 there was only a support for a single
RawRepresentable
values and I noticed that I cannot use same automatic support for dictionary keys. So, this pull requests covers an arrays ofRawRepresentable
types and dictionaries. The whole point of both pull requests is to be able to add an extension to any RawRepresentable type withCerealRepresentable
conformance in any swift module, not just a module where it is declared. This swift compiler bug made logic separation nearly impossible.I have a two questions:
RawRepresentable
s, should I separate them into an extension?RawRepresentable
?