Giter VIP home page Giter VIP logo

Comments (15)

marchy avatar marchy commented on July 3, 2024

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

from bolts-objc.

nlutsenko avatar nlutsenko commented on July 3, 2024

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.
I will look into this, but, unfortunately, can't provide any time line...

from bolts-objc.

marchy avatar marchy commented on July 3, 2024

Great, thanks for confirming it's a priority. Looking forward to it!

from bolts-objc.

ileacristian avatar ileacristian commented on July 3, 2024

Any updates?

from bolts-objc.

willadsen avatar willadsen commented on July 3, 2024

+1

from bolts-objc.

danyalaytekin avatar danyalaytekin commented on July 3, 2024

+1

from bolts-objc.

nlutsenko avatar nlutsenko commented on July 3, 2024

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...

from bolts-objc.

marchy avatar marchy commented on July 3, 2024

@nlutsenko Thanks for the update Nikita. Exciting stuff!

from bolts-objc.

marchy avatar marchy commented on July 3, 2024

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!

from bolts-objc.

nlutsenko avatar nlutsenko commented on July 3, 2024

Absolutely!
You can also drive this and send some PRs, we would be happy to review them.
I am going to close this issue, since this is done in #136

from bolts-objc.

marchy avatar marchy commented on July 3, 2024

Fantastic work guys! I may be able to do that when I get some time to put into this. No promises... but will try. :)

from bolts-objc.

marchy avatar marchy commented on July 3, 2024

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

from bolts-objc.

nlutsenko avatar nlutsenko commented on July 3, 2024

Hey everyone, we have a full Swift implementation now:
https://github.com/BoltsFramework/Bolts-Swift

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.

from bolts-objc.

christianpbrink avatar christianpbrink commented on July 3, 2024

@nlutsenko I just stumbled on this.

My project is in Swift and uses the Parse SDK, meaning I'm passing around a lot of BFTask<AnyObject> objects. It works, but I would like it if I could type-instantiate BFTask with my various result types.

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 Task type in Bolts-Swift, which is generic, isn't interchangeable with BFTask and so won't work in my code (unless I write the conversion layer you alluded to, but I wouldn't even know where to begin on that).

Do you know a way I can use type-instantiated BFTasks or Tasks in my Swift code that depends on the Parse SDK, without writing that conversion layer? Or perhaps that undertaking shouldn't sound as intimidating as it does?

from bolts-objc.

nlutsenko avatar nlutsenko commented on July 3, 2024

This is a good question!
Unfortunately, as of right now, you would need to create a manual conversion layer between BFTask and BoltsSwift.Task.
I also would love to see this eventually being added upstream to BoltsSwift, meaning that PRs are very welcome!

from bolts-objc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.