Title: RE: When to validate?

Antoine Leca wrote:
> As a result, your strings are likely to be some stuctures.
> Then, it is pretty easy to add some s_valid flag, and you are done.
Is that a proven technique? I'd say not. The flag would only be valid for as long as the string is not changed. You would still be running the validation on the entire string each time you would change or append anything. And as such technique is not widely accepted, there would be re-validations each time data would cross API boundaries.


Lars

Reply via email to