On Fri, 3 May 2002 04:24:25 -0700, Don Syme <[EMAIL PROTECTED]> wrote:
>Hi Ken, > >Your response assumes that programmers write code the way they are "supposed" to, i.e. you're assuming something code that simply may not be valid in practice. On a platform like .NET you can't guarantee that na�ve programmers won't use exceptions for control, e.g. raise an exception if an element isn't found in the domain of a dictionary and then catch it to go look somewhere else. > >I will take a bet that no matter what is "supposed" to happen, there will still be many programs running on CLRs that use exceptions for control. However dubious you personally may feel it is, this is a standard programming technique for many people. > >Cheers, >Don > 100% agreement. Even non-naive programmers will do it. I don't have a good .NET example but check out Apache's Java based XML library (Xerces), a widely used library, to see exactly what I mean. Exceptions *are* used for flow of control, in spite of all the common sense advice available out there. Cristian
