johnlui / JSONNeverDie

Auto reflection tool from JSON to Model, user friendly JSON encoder / decoder, aims to never die
MIT License
450 stars 39 forks source link

Support protocol init #10

Open Xioshock opened 8 years ago

Xioshock commented 8 years ago

Hey, nice library. It would by nice if it also supported protocols (with implementation) instead of just subclassing. Some other libraries, mainly ORMs need subclassing and it would be impossible to use this and Realm for example, or even SharkORM, at the same time.

johnlui commented 8 years ago

Thanks for your feedback!

I know sub-class method is not a good one when using swift, and it is not swifty at all. But if I want to build the auto-reflection feature, I really need OC runtime.

Sorry.