Re: Getting A Newb Started

From: John H. Jenkins (jenkins@apple.com)
Date: Mon Jul 07 2008 - 19:50:47 CDT

  • Next message: Kenneth Whistler: "Re: Getting A Newb Started"

    On Jul 7, 2008, at 5:17 PM, William J Poser wrote:

    > Of course you want to be prepared for any possible input, but
    > in some cases you do know what the range of possible inputs is.
    > The input may not be coming directly from the user. It may be user
    > input that has already been cleaned or validated, or it may be
    > data that you yourself have generated.
    >

    Writing your code with the assumption that you're dealing with BMP-
    only is nonetheless still a bad idea, since the day will inevitably
    come when you want to re-use it in a situation where the assumption is
    false. Best to write for Unicode with as much generality as possible
    from the get-go rather than having to rewrite later.

    =====
    John H. Jenkins
    jenkins@apple.com



    This archive was generated by hypermail 2.1.5 : Mon Jul 07 2008 - 19:52:57 CDT