February 20, 2011 [Issue 5618] New: Fix separator schizophrenia | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5618 Summary: Fix separator schizophrenia Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: jmdavisProg@gmx.com --- Comment #0 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-02-19 22:16:46 PST --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 20, 2011 [Issue 5618] Fix separator schizophrenia | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=5618 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc 2011-02-20 03:53:25 PST --- See also bug 4468 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation