utahiosmac / Marshal

Marshaling the typeless wild west of [String: Any]
MIT License
697 stars 62 forks source link

Simplify Marshal using new Swift features #135

Open olejnjak opened 5 years ago

olejnjak commented 5 years ago

Hi,

I was wondering whether it would be possible to simplify Marshal implementation using new Swift features like conditional protocol conformance. This would also simplify creating 3rd party extensions above Marshal.

This would e.g. allow [ValueType] to conform ValueType so lot of code could be then reused/deleted.

I'm open to implementing it but don't wanna waste time on something that wouldn't have a chance to be merged.

Thanks

bwhiteley commented 5 years ago

I like the idea of reducing duplicated code.