-
Notifications
You must be signed in to change notification settings - Fork 576
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
Create separate API using Swift generics #61
Comments
Can you guys give some thoughts as to progress on this? ie: has it started, what the general strategy you are considering is? NOTE: There's been a fork project that has started this already called Thunderbolts |
Absolutely, as we have generics in Swift - I think we can add support for new mechanics as well as much cleaner and safer! using Swift generics. |
Great, thanks for confirming it's a priority. Looking forward to it! |
Any updates? |
+1 |
1 similar comment
+1 |
Wanted to let you know guys that we are still tracking this, and that we are working on supporting Obj-C generics (and Swift generics as a result) with Bolts.framework very soon. Stay tuned for updates on this issue... |
@nlutsenko Thanks for the update Nikita. Exciting stuff! |
Hey guys, congrats on the 1.2.2 release which looks like it has. This is a huge deal for Bolts! One thing though, the documentation on the main page will have to be updated to show the usage of the genericized tasks everywhere. You guys shouldn't shy out on advertising and educating everyone about this large improvement. Please update the documentation so that everyone can be made aware and start adopting it in their codebases! |
Absolutely! |
Fantastic work guys! I may be able to do that when I get some time to put into this. No promises... but will try. :) |
Can you pease re-open this issue and note the team's plans for implementing it? It seems generics was not added for Swift only Objective-C, as per this discussion thread: #191 |
Hey everyone, we have a full Swift implementation now: It's runtime incompatible, but if anyone wants to take a shot at implementing conversion layer - I will gladly take a look at the Pull Request. |
@nlutsenko I just stumbled on this. My project is in Swift and uses the Parse SDK, meaning I'm passing around a lot of My understanding is that this isn't currently possible for my project, since (1) I can't use Objective-C's generics features in Swift and (2) the Do you know a way I can use type-instantiated |
This is a good question! |
Now that Swift has been released, the API design between Android and iOS should be brought together with the support of generics in Swift.
Swift apps should be able to reference a more modern API that takes advantage of generics for task results and continuations.
For legacy purposes it likely makes sense to keep the Objective-C implementation separate, since Obj-C does not support generics. However Swift codebases should not be held back from leveraging the advantages of generics due to the legacy nature of the Bolts Obj-C library.
The text was updated successfully, but these errors were encountered: