RE: When to validate?

From: Lars Kristan (
Date: Sat Dec 11 2004 - 04:22:33 CST

  • Next message: Marcin 'Qrczak' Kowalczyk: "Re: Nicest UTF"

    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.


    This archive was generated by hypermail 2.1.5 : Sat Dec 11 2004 - 04:23:20 CST