Why is there no splitBy in the list module?

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Jul 18 07:58:53 EDT 2006


On Tue, 2006-07-18 at 12:27 +0100, Malcolm Wallace wrote:
> Christian Maeder <maeder at tzi.de> wrote:
> 
> > After all our discussions, I simply want to keep up my old proposal.
> > It drops a final delimiter and is named using "With" instead of "By"
> > and therefore would not imply any changes to Data.PackedString.
> 
> I think the general objection to the "With" suffix is that it is
> non-standard naming.  All the Haskell'98 libraries use "By" for this
> kind of meaning.  Data.PackedString is non-standard, and should not
> be relied upon as an accurate stylistic guide.

Indeed, the Data.PackedString API aspires to follow existing practise
from Data.List and elsewhere in the standard libs. So if there is a
discrepancy then it is Data.PackedString that should change. We'd be
happy to do that, especially as the API is not yet set in stone.

Duncan



More information about the Libraries mailing list