-
Notifications
You must be signed in to change notification settings - Fork 687
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
Remove ...error:(NSError**)error methods #162
Comments
hey stig, i just pull the latest json-framework into my project and was surprised to see these methods removed. i am not arguing for or against, but i am curious to know why you decided to remove them from the API? thanks for the framework - i use it extensively. jjm |
Hi Joshua, This change is to allow me to focus on what makes this library stand out, which now really is streaming support. It is important to note that the coding master, which you've just pulled, is what will become 4.0. I do not change backward compatibility in minor releases. (Intentionally.) It is difficult to say how many use that second argument, of course, since I don't instrument the library in any way. But I can say with certainty that nobody who have had a problem and posted on stack overflow showed that they used it in any meaningful way. I think people simply don't understand how to use these error pointers. And, by the way, now that Objective-C has blocks I think it would be much nicer to provide a block based interface. This also ties in with the idea of an event-based/streaming interface. Stig Sent from my iPhone On 27 Feb 2013, at 13:32, Joshua Moody notifications@github.com wrote:
|
thanks for the detailed explanation. as i said, the change does not really bother me, but i was curious to know what led you the decision. when implementing my own classes, the question of whether or not to use error pointers is always difficult to answer. re: blocks - i would certainly use such an interface. again, thanks for the library. keep up the good work. ps. to maintain backward compatibility in my own code (where i use the error pointer a great deal), i simply added a category on the parser. |
No description provided.
The text was updated successfully, but these errors were encountered: