<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
From: Roman Leshchinskiy &lt;<a href="mailto:rl@cse.unsw.edu.au">rl@cse.unsw.edu.au</a>&gt;<br>
<br>
On 17/10/2010, at 21:25, Bryan O&#39;Sullivan wrote:<br>
<br>
&gt; On Mon, Oct 11, 2010 at 1:12 PM, Malcolm Wallace &lt;<a href="mailto:malcolm.wallace@me.com">malcolm.wallace@me.com</a>&gt; wrote:<br>
&gt;<br>
&gt; The breakSubstring functionality is semantically:<br>
&gt;    breakSubstring x = break (==x)<br>
&gt; although there may be a more efficient implementation.<br>
&gt; Proposal: rename Text.break to Text.breakSubstring, and Text.breakBy to Text.break.<br>
&gt;<br>
&gt; So far, I&#39;ve been proceeding on the basis that I&#39;d like naming to be consistent and descriptive, and to have more commonly used functions get shorter names than their less commonly used (but possibly more general) cousins. For instance, breakSubstring is descriptive, and it&#39;s consistent with bytestring, but it&#39;s much longer than break, even though breaking on a fixed string is more common. In this case, length and frequency of use trump the other considerations in my mind.<br>

<br>
FWIW, I take almost exactly the opposite approach with vector. I try to follow the list/array interface as closely as possible even in the presence of more frequently used but subtly different operations. My rationale is that typing a few extra characters is vastly preferable to having to search through the docs to find out what this particular library calls this particular function.<br>
</blockquote><div><br>I think there&#39;s a significant difference between vector and text, namely a Vector is conceptually the same as a list/1D array, while a Text is not.  I think this difference is enough to warrant a break from the list API.<br>
<br>John<br></div></div>