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

Fix separator schizophrenia #9899

Open
dlangBugzillaToGithub opened this issue Feb 19, 2011 · 1 comment
Open

Fix separator schizophrenia #9899

dlangBugzillaToGithub opened this issue Feb 19, 2011 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

issues.dlang (@jmdavis) reported this on 2011-02-19T22:16:46Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=5618

CC List

Description

Some functions in Phobos take an element for a separator whereas others take a range. For instance, splitter takes an element, but its opposite - joiner - takes a range. findSplit* take a range and split on that (though they don't technically take a seperator per se) but until takes an element. I keep having to look up functions to know whether the separator they take is a single element or a range of them.

I would think that it would behoove us to make the functions in Phobos which take separators _consistent_ and make them all take a range for their separator rather than having some take a range and some take a single element. It would definitely improve useability. And if it's a problem to have them all take a range for their separator, then maybe they should have two versions - one which takes an element for the separator and one which takes a range.
@dlangBugzillaToGithub
Copy link
Author

bearophile_hugs commented on 2011-02-20T03:53:25Z

See also bug 4468

@LightBender LightBender removed the P4 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants