Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.

Xcode 10/Swift 4.2. Use Result 4.0.0 Fix #192 #193

Merged
merged 2 commits into from
Sep 18, 2018

Conversation

phimage
Copy link
Collaborator

@phimage phimage commented May 29, 2018

Just restoring missing function analysis removed from Result
and fix value and error getters for new ResultProtocol implementation in Result 4.0.0

@phimage
Copy link
Collaborator Author

phimage commented May 29, 2018

on travis same issue than previous PR
maybe just minimum version for platform must edited in travis file

@arnopoulos
Copy link
Collaborator

@Thomvis Given the keynote next week do you think that this should be prioritized?

@@ -8,6 +8,17 @@

import Result

extension ResultProtocol {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason that we're adding this here? From what I can tell it doesn't look like this needs to be here in order to fix the issue at hand but that's just from a cursory glance at the Result code. If no, it might be better to put this up on the Result repo rather than this one because I do like the addition

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I need to learn how to read PR descriptions 😅. I do still think that you should put up a PR for this on Result's repo but this is a nice stop gap measure.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you can see, Result framework now encapsulate a Result in a result(resultProtocol)
My others change demonstrate it.

Result framework do not want all this function on the protocol, that’s not the spirit of their modications (composition pattern)

I make it as extension here just to not edit a lot of code, ie. do xxx.result.analysis everywhere

@@ -8,6 +8,17 @@

import Result

extension ResultProtocol {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I need to learn how to read PR descriptions 😅. I do still think that you should put up a PR for this on Result's repo but this is a nice stop gap measure.

@phimage
Copy link
Collaborator Author

phimage commented Sep 18, 2018

Hi, @Thomvis
If you need help to manage project, you could add me. (You already add me to FutureProofing).
Xcode 10 is out, and Result 4.0.0 is now used by other projects.

@Thomvis
Copy link
Owner

Thomvis commented Sep 18, 2018

@phimage I've added you as a collaborator. Thanks for taking the time to help out. It would be great if you could spearhead the new Xcode 10 compatible release.

@phimage phimage changed the title Use Result 4.0.0 Fix #192 Xcode 10/Swift 4.2. Use Result 4.0.0 Fix #192 Sep 18, 2018
@Thomvis Thomvis merged commit 64de745 into Thomvis:master Sep 18, 2018
@Thomvis
Copy link
Owner

Thomvis commented Sep 18, 2018

I've merged the PR into master and will cut a release shortly. Thanks for your help, and patience!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants