Skip to content
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

Support FantasyLand 1.x #26

Merged
merged 5 commits into from
Sep 23, 2016
Merged

Support FantasyLand 1.x #26

merged 5 commits into from
Sep 23, 2016

Conversation

Avaq
Copy link
Member

@Avaq Avaq commented Sep 15, 2016

  • Prefixed method names
  • Flipped ap

I also changed the FantasyLand dispatchers to dispatch strictly
to Fantasy prefixed methods. Fixes #25.
@Avaq Avaq added this to the FantasyLand 1.0 milestone Sep 15, 2016
@codecov-io
Copy link

codecov-io commented Sep 15, 2016

Current coverage is 100% (diff: 100%)

Merging #26 into master will not change coverage

Powered by Codecov. Last update aa9d6b0...8c7ab4f

@Avaq
Copy link
Member Author

Avaq commented Sep 15, 2016

I would like to ask the community whether there's anything I forgot in order to support FL-1.0?

@rpominov
Copy link

Prefixes and flipped ap is probably all there is in Fluture.

error$invalidArgument(`Future.${method}`, 0, `have a "${method}" method`, m);
};
}

Copy link
Contributor

Choose a reason for hiding this comment

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

It's nice to see this go away. :)

bimap: 'fantasy-land/bimap',
chain: 'fantasy-land/chain',
ap: 'fantasy-land/ap',
of: 'fantasy-land/of'
};
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest adding fantasy-land as a dev dependency and requiring it here to catch typos. :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh, that's a great idea! That way we're ensuring compatibility with the naming conventions of a specific FL version, without having a hard dependency to it! :D

Choose a reason for hiding this comment

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

Just curious why not actually add a hard dependency?

Choose a reason for hiding this comment

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

I mean I can understand not wanting a peer dependency, but what bad about a normal dependency?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious why not actually add a hard dependency?

I don't see compelling reasons to do so: sanctuary-js/sanctuary-type-classes#2 (comment).

Copy link
Member Author

Choose a reason for hiding this comment

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

FantasyLand comes with its own dependency tree which seems to me like unnecessary overhead. It's not much of a big deal, but if there's no practical difference, or even much of a code-reuse advantage, I consider it cleaner not to depend on it.

Copy link

@rpominov rpominov Sep 18, 2016

Choose a reason for hiding this comment

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

FantasyLand comes with its own dependency tree which seems to me like unnecessary overhead.

Didn't know that, created a PR that fixes it fantasyland/fantasy-land#168

Other points are valid as well though, I understand it better now, thanks!

@@ -802,3 +807,4 @@ means butterfly in Romanian; A creature you might expect to see in Fantasy Land.
[22]: https://github.com/Avaq/Fluture/wiki/Comparison-to-Promises
[23]: https://vimeo.com/106008027
[24]: https://github.com/fantasyland/fantasy-land#bifunctor
[25]: https://github.com/fantasyland/fantasy-land/tree/1.0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be 1.0.1?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wish it could be ^1.0.0, maybe I should just use master and pin it once a 2.0 comes out.

@Avaq Avaq merged commit 8788db8 into master Sep 23, 2016
@Avaq Avaq deleted the av-fantasy-land-1 branch October 3, 2016 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants