1 Dec
2005
1 Dec
'05
8:15 p.m.
On Thu, Dec 01, 2005 at 08:06:14PM +0200, Yuval Ronen wrote:
Pavol Droba wrote:
This seems like a goot idea. I like the interface with int parameter. I'll add it to my todo list.
First of all, thanks.
One problem with the negative numbers I just thought of: zero. A positive zero means return an empty string. A negative zero means return the whole input string. But since there's no difference between positive zero and negative zero...
Well, we just have to decide and document it. I think, that the safer approach would be to treat 0 as positive number. If for nothing else, it would not break current definition. Regards, Pavol