Skip to content

Conversation

@davidchambers
Copy link
Member

These changes make the document clearer but uglier. Clarity trumps beauty, in this context.

👍 / 👎 ?

### Foldable

1. `u.reduce` is equivalent to `u.reduce((acc, x) => acc.concat([x]), []).reduce`
1. `u['fantasy-land/reduce']` is equivalent to `u['fantasy-land/reduce']((acc, x) => acc.concat([x]), []).reduce`
Copy link
Member Author

Choose a reason for hiding this comment

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

We really do want .concat and .reduce here because we're referring to Array#concat and Array#reduce.

3. If `a['fantasy-land/equals'](b)` and `b['fantasy-land/equals'](c)`, then `a['fantasy-land/equals'](c)` (transitivity)

#### `equals` method
<a name="equals-method"></a>
Copy link
Member Author

Choose a reason for hiding this comment

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

As far as I'm aware GitHub does not provide a way to customize a heading's fragment identifier.

@xaviervia
Copy link

@davidchambers this makes a lot of sense to me, but as an observer tracking what people think about FL, I think it might be a bit of a public relations problem. As it is today, a lot of libraries are de facto partially compatible with FL. After the change, most of them will no longer be (ramda comes to mind).

@davidchambers
Copy link
Member Author

@xaviervia, the spec has required prefixed method names since #146 was released in v1.0.0 back in 2016. This pull request just updates the documentation to make this existing requirement apparent.

p.s. I'm not holding my breath waiting for Ramda to fully support Fantasy Land.

@xaviervia
Copy link

xaviervia commented Feb 28, 2019 via email

@davidchambers davidchambers merged commit 8cf6a3a into fantasyland:master Mar 2, 2019
@davidchambers davidchambers deleted the prefixes branch March 2, 2019 19: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.

2 participants