Skip to content

Standardize prop or and path or functionality to match documentation#2995

Open
Tworley96 wants to merge 4 commits into
ramda:masterfrom
Tworley96:Standardize-propOr-and-pathOr-functionality-to-match-documentation
Open

Standardize prop or and path or functionality to match documentation#2995
Tworley96 wants to merge 4 commits into
ramda:masterfrom
Tworley96:Standardize-propOr-and-pathOr-functionality-to-match-documentation

Conversation

@Tworley96
Copy link
Copy Markdown

Follow up to #2888
Reverts change to propOr that caused issue in test suite

@Tworley96 Tworley96 force-pushed the Standardize-propOr-and-pathOr-functionality-to-match-documentation branch from b9d0076 to d00ee74 Compare March 9, 2020 16:21
@ku8ar
Copy link
Copy Markdown
Contributor

ku8ar commented Mar 22, 2020

It all goes the wrong way. Adding nth support to prop/path causes unnecessary complexity. And it's very inefficient...

@CrossEye
Copy link
Copy Markdown
Member

CrossEye commented Mar 23, 2020

@ku8ar:

Do you have suggestions? I think the main constraints are that things like path(foo) and path([foo]) should always have the same behavior, and that all of these, but especially the simplest ones like path should be as performant as possible.

@ku8ar
Copy link
Copy Markdown
Contributor

ku8ar commented Mar 23, 2020

@CrossEye Yes of course. I added a suggestion here: #2974 (comment)
That suggestion will simplify this code. In short: remove nth from prop and path. But this is a hard decision, considering that there is already version 0.27 with this feature...

@CrossEye
Copy link
Copy Markdown
Member

I have absolutely no problem changing the behavior back in the next version if it turns our we made a mistake. I don't have much time now to investigate why this was added, and we need to do that before deciding whether it's worth the costs it adds.

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.

3 participants