On Friday, March 21, 2014 11:37:33 AM UTC-4, Stefan Karpinski wrote:
>
> Getting back to your original example, I would counter that you never 
> really want to just do something like "replace the 16th character of this 
> string" in isolation. How did you figure out the index 16? What you really 
> want to do here is replace every instance of the NUL byte with a space. The 
> replace function will do that for you:
>

Categorical assertions like  "you never really want to just do   " are 
(almost) never correct. :)  E.g., if you're trying parse and update or 
correct a legacy database changing the 16th char might be just the thing.  
Perhaps it would be a good idea to add this functionality to replace?

Reply via email to