christophe.poucet / gmail.com wrote: > Dear, > > I have two suggestions which I think would be useful in ruby. > > First of all, I have noted that a sleeping thread (a thread that was > .stop'ed) does no longer have the method .stop... This means that one > must use > thread.stop unless thread.stop? > I would suggest implementing a stop method on a sleeping thread that > is basically a noop. > > Secondly, I have noticed that the strip/lstrip/rstrip methods of > String do not take a string with the possible characters to remove. > Possibly this could be changed, and then have as default value " ". > What I mean is: > > "aaabbbccc".lstrip("ab") => "ccc" > "abababccc".lstrip("ab") => "ccc" > "ababcabc".lstrip("ab") => "cabc" >> "aaabbbccc".sub /^[ab]+/, '' => "ccc" >> "abababccc".sub /^[ab]+/, '' => "ccc" >> "ababcabc".sub /^[ab]+/, '' => "cabc" > Similarly for strip and rstrip. #strip gsub /[ab]+/, '' #or >> "ababcabc".tr "ab", "" => "cc" #rstrip sub /[ab]+$/, '' Does this help? robert