int/long unification hides bugs

kartik kartick_vaddadi at yahoo.com
Wed Oct 27 15:06:11 CEST 2004


Sam Holden <sholden at flexal.cs.usyd.edu.au> wrote in message news:<slrncnu70c.tiv.sholden at flexal.cs.usyd.edu.au>...
> > i never talked about *relying* on overflow errors to
> > ensure the correctness of code. it's only a mechanism
> > that catches bugs in some cases - & that's valuable.
> 
> That's not valuable at all. It encourages a "I won't bother doing bounds
> checking on my operations since if I stuff up the language *might* catch
> it if I get lucky and crash my program" style of programming that you
> seem fond of.
> 
> Better to do bounds checking that will *always* catch it.

I understand. Thank you.

-kartik



More information about the Python-list mailing list