C
christophe.poucet
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"
Similarly for strip and rstrip.
With regards,
Christophe
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"
Similarly for strip and rstrip.
With regards,
Christophe