API design: (start,length) vs (start,end)
Per Bothner
per at bothner.com
Tue Nov 20 10:42:12 PST 2012
On 11/20/2012 10:34 AM, Brian Goetz wrote:
> That's a good point. I had thought there was more precedent for (start,
> length) but I am not finding it right now.
The java.lang.String constructors take (offset,count) - but
String#subssring and CharSequence#subSequence take (fromIndex,toIndex).
--
--Per Bothner
per at bothner.com http://per.bothner.com/
More information about the lambda-dev
mailing list