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

Rename string trim functions #315

Merged
merged 2 commits into from
Jun 22, 2024
Merged

Rename string trim functions #315

merged 2 commits into from
Jun 22, 2024

Conversation

cmeeren
Copy link
Contributor

@cmeeren cmeeren commented Apr 25, 2020

As requested in #288 (comment)

@wallymathieu
Copy link
Member

Looks good. Looks like trimboth is used in python. Another alternative is to use the word strip.

@wallymathieu
Copy link
Member

It would be good to hear some people chime in here 😃

@cmeeren
Copy link
Contributor Author

cmeeren commented Apr 25, 2020

I think we should stick to some version of trim because it's what .NET users expect.

Some alternatives to trimBoth are trimStartEnd and trimChars (though in the latter case it's not consistent with trimStart and trimEnd).

@wallymathieu
Copy link
Member

That's true. Let's see what people says 😃

@gusty
Copy link
Member

gusty commented Apr 27, 2020

I think I would be in favor of this change, but of course in case we approve it, it will have to be for v2.0

In the meantime it would be interesting to hear other voices. Maybe @cannorin can comment as he added many string functions to the lib.

@gusty gusty force-pushed the master branch 5 times, most recently from 105ed2c to d80a4ad Compare February 22, 2023 07:56
@wallymathieu wallymathieu force-pushed the master branch 5 times, most recently from f92d910 to 39638fb Compare February 22, 2023 17:36
@gusty gusty force-pushed the master branch 6 times, most recently from 9b34ece to b2f3c8c Compare October 15, 2023 05:01
@gusty gusty force-pushed the master branch 2 times, most recently from 484cff5 to 142c806 Compare December 18, 2023 08:18
@wallymathieu wallymathieu merged commit 76fbe4c into fsprojects:master Jun 22, 2024
6 checks passed
@cmeeren cmeeren deleted the patch-1 branch June 27, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants