-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Several improvements #17
Conversation
maximkhatskevich
commented
May 3, 2016
- Minor bug fix ('collection' property wasn't available because it wasn't marked as 'public').
- Extended functionality (see 'ArrowInitializable' protocol and '<--/' infix operator).
- Improved code formatting to make it easy to read.
- Few minor code cleanups.
so it's easier to read and reason about.
JSON.collection wasn't marked as public
Plus minor class reorganization to increase readability
- 'data' property does NOT need to be optional, as we do not create class instance at all if deserialized data represetation is nil; - 'init' should not be optional, as it will simplify the code and increase readability, while usually input data is being checked outside of the class anyway.
Warning: no unit tests so far.
First of all I would like to thank you for the time you took to put up this quite massive PR, and let you know that I am sorry for taking so long to reply. This is full of nice improvements indeed :) Unfortunately the code formatting has changed all over the place which is why it cannot be merged "as is". From now on, we are going to rely on https://github.com/realm/SwiftLint formatting so that everyone stands on the same ground. Apart from that, I really like the api improvements you suggest. @maxkonovalov do you have any thoughts on that ? Cheers, |
Hey guys,
On the |
Okay, guys. I'll fix formatting, thanks for the feedback!
|
Your initial idea about the ArrowInitializable protocol has been implemented separately in #28 Thanks again for your work, Closing this for now |
Great, thanks! |