Coder Social home page Coder Social logo

Comments (9)

NachoSoto avatar NachoSoto commented on July 20, 2024

If you’re building with 10.2, there’s little point to using this dependency anymore :)

from result.

mdiep avatar mdiep commented on July 20, 2024

It should work just as before. Can you share what you're doing and what error you're seeing?

from result.

jimisaacs avatar jimisaacs commented on July 20, 2024

Screen Shot 2019-03-26 at 1 00 00 PM

from result.

jimisaacs avatar jimisaacs commented on July 20, 2024

@NachoSoto can you clarify? If I'm still supporting iOS 11, or still have dependencies that build for Swift 4.2? Do I need this dependency? Sorry if I'm not completely up to speed on all things upgrade, just giving it a shot to see what breaks.

from result.

NachoSoto avatar NachoSoto commented on July 20, 2024

Result is part of the Swift standard library that you’re including with your binary. As long as you’re compiling with a newer version of the compiler, you have access to Result, regardless of iOS / dependencies Swift versions.

from result.

jimisaacs avatar jimisaacs commented on July 20, 2024

@NachoSoto Ok, so I think the issue there is a namespace one, and particularly with Apollo. Let me share the full imports.
Screen Shot 2019-03-26 at 1 14 54 PM

Apollo defines it's own Result, and I had a conflict that was more easily resolved by doing the targeted import on Result (less to import).

Now for me to remove Result. I'd have to do the following (among many other options).

  1. Remove Result
  2. Change all references to Swift.Result.

Of course other options are, make a PR against Apollo, but we have other issues there that complicate that route.

Does this outline sound like the right approach? Or from what I've shared, should importing Result the way I am still work?

from result.

mdiep avatar mdiep commented on July 20, 2024

Oh, in Swift 5 mode, this repo doesn't define Result as an enum—it just extends the type from the Standard library. You can probably remove that import entirely or change it to import Result and it should work.

import enum Result.Result will no longer work because, as it says, the Result module no longer defines that enum.

from result.

jimisaacs avatar jimisaacs commented on July 20, 2024

Hmm, ok, it looks like I can't get around doing the targeted import on Apollo then. thanks for the help!

from result.

jimisaacs avatar jimisaacs commented on July 20, 2024

Just following up, targeted import on Apollo and removal of import of Result works.

from result.

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.