From: Brian B. <bri...@gm...> - 2005-10-25 11:19:07
|
On 25/10/05, Amit Dubey <ami...@gm...> wrote: > I see the problem. I think there may be another problem if first < -(len= gth > s). Is it best to fix these bugs, or change the documentation? > My opinion would be fix the problem, since we already have String.sub to throw exceptions. Generally, I reckon its nice to have both exception and non-exception versions of things. Eg on the project I used String.slice in, I wanted a version of List.combine, but with the spec of Haskell zip, ie just discarding extra length. It might be reasonable to add that family too. -- Bri...@it...____Wit____Disclaimer____!Shortsig_rules! |