Why? Well, just because returning "counting empty string in other string" error, isn't that useful
Good point.
/ Peter Lundqvist (disjunkt)
Previous text:
2003-04-29 02:23: Subject: Strange?
This is a programming language, not math.
First you might want to do a count to see how many places there are that you should do a replace on:
replace("foo", "", "bar");
Result: "fbarobaro"
Which of course should have been:
replace("foo", "", "bar");
Result: "barfbarobarobar"
Why? Well, just because returning "counting empty string in other string" error, isn't that useful and it makes program harder to write if you always have to check the string and see if it is "".
/ Hedda (Hemma igen)