FSharpPlus
FSharpPlus copied to clipboard
Rename string trim functions
As requested in https://github.com/fsprojects/FSharpPlus/issues/288#issuecomment-619355229
Looks good. Looks like trimboth
is used in python. Another alternative is to use the word strip
.
It would be good to hear some people chime in here 😃
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
).
That's true. Let's see what people says 😃
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.